Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3370

#[31m[Nest] 4245 - #[39m10/25/2022, 7:35:31 AM #[38;5;3m[ExceptionsHandler]

#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +7034948ms#[39m


Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 4245 - #[39m10/25/2022, 8:24:05 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +2914757ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 4245 - #[39m10/25/2022, 8:28:08 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +242207ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 4245 - #[39m10/25/2022, 8:29:35 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +87104ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 4245 - #[39m10/25/2022, 8:30:31 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +56449ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 4245 - #[39m10/25/2022, 8:31:40 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +68321ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 4245 - #[39m10/25/2022, 8:31:51 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +11529ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 4245 - #[39m10/25/2022, 8:40:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+488608ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:868:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 4245 - #[39m10/25/2022, 10:20:04 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +6004203ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 4245 - #[39m10/25/2022, 10:20:07 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2967ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 9614 - #[39m10/25/2022, 7:00:00 PM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m
+8452733ms#[39m
#[31m[Nest] 9614 - #[39m10/25/2022, 7:00:00 PM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m +152ms#[39m
#[31m[Nest] 12624 - #[39m10/25/2022, 10:29:56 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6644544ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 12624 - #[39m10/25/2022, 10:30:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +18910ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 12624 - #[39m10/26/2022, 1:31:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +10858102ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 12624 - #[39m10/26/2022, 4:30:51 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +10778160ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 12624 - #[39m10/26/2022, 4:49:03 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1091608ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 12624 - #[39m10/26/2022, 4:58:08 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +545325ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 12624 - #[39m10/26/2022, 5:00:00 AM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m
+111603ms#[39m
#[31m[Nest] 12624 - #[39m10/26/2022, 5:00:00 AM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m +105ms#[39m
#[31m[Nest] 12624 - #[39m10/26/2022, 5:27:34 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +1654475ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 12624 - #[39m10/26/2022, 5:30:20 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +165934ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 12624 - #[39m10/26/2022, 6:50:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +4821343ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 12624 - #[39m10/26/2022, 6:51:38 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31m`key_id` is mandatory#[39m#[38;5;3m +56356ms#[39m
Error: `key_id` is mandatory
at new Razorpay
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/razorpay/dist/razorpay.js:33:13)
at SharedService.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:1471:24)
at SharedController.createOrder
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/controller/
shared.controller.ts:286:31)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 16769 - #[39m10/26/2022, 8:59:47 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+6050663ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:868:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 16769 - #[39m10/26/2022, 4:40:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +27658384ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/26/2022, 4:40:53 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7163ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/26/2022, 7:00:00 PM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m
+8346964ms#[39m
#[31m[Nest] 16769 - #[39m10/26/2022, 7:00:00 PM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m +96ms#[39m
#[31m[Nest] 16769 - #[39m10/27/2022, 5:00:00 AM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m
+35999927ms#[39m
#[31m[Nest] 16769 - #[39m10/27/2022, 5:00:00 AM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m +208ms#[39m
#[31m[Nest] 16769 - #[39m10/27/2022, 6:09:41 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+4181234ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:868:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 16769 - #[39m10/27/2022, 7:10:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_trials" violates foreign key constraint
"FK_ef6d93baf40e52b56c1453ba3d8"#[39m#[38;5;3m +3632215ms#[39m
QueryFailedError: insert or update on table "tb_trials" violates foreign key
constraint "FK_ef6d93baf40e52b56c1453ba3d8"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
QueryFailedError: insert or update on table "tb_legacy_app_crashes" violates
foreign key constraint "FK_73752be32099db08ae74b3d6695"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
query: 'INSERT INTO "tb_legacy_app_crashes"("createdAt", "file", "method",
"feature", "stacktrace", "version", "platform", "userId") VALUES (DEFAULT, $1, $2,
$3, $4, $5, $6, $7) RETURNING "id", "createdAt"',
parameters: [
null,
null,
null,
'DioError [DioErrorType.response]: Http status error [500]\n' +
'Source stack:\n' +
'#0 DioMixin.fetch (package:dio/src/dio_mixin.dart:488:35)\n' +
'#1 DioMixin.request (package:dio/src/dio_mixin.dart:483:12)\n' +
'#2 DioMixin.get (package:dio/src/dio_mixin.dart:61:12)\n' +
'#3 PublicRepository.getTrialStartDate
(package:sunokitaab/data/services/repository/PublicRepository.dart:190:39)\n' +
'#4 GlobalCubit.getTrialStartDate
(package:sunokitaab/bloc/global/global_cubit.dart:71:53)\n' +
'#5 _SplashScreenState.setUser (package:sunokitaab/splash.dart:44:39)\n'
+
'<asynchronous suspension>\n' +
'\n' +
'#0 DioMixin.fetch.<anonymous closure>
(package:dio/src/dio_mixin.dart:643:7)\n' +
'#1 _rootRunBinary (dart:async/zone.dart:1452:47)\n' +
'#2 _CustomZone.runBinary (dart:async/zone.dart:1342:19)\n' +
'#3 _FutureListener.handleError (dart:async/future_impl.dart:175:22)\n'
+
'#4 Future._propagateToListeners.handleError
(dart:async/future_impl.dart:779:47)\n' +
'#5 Future._propagateToListeners (dart:async/future_impl.dart:800:13)\n'
+
'#6 Future._completeError (dart:async/future_impl.dart:610:5)\n' +
'#7 _SyncCompleter._completeError (dart:async/future_impl.dart:61:12)\n'
+
'#8 _Completer.completeError (dart:async/future_impl.dart:33:5)\n' +
'#9 Future.any.onError (dart:async/future.dart:466:45)\n' +
'#10 _rootRunBinary (dart:async/zone.dart:1452:47)\n' +
'#11 _CustomZone.runBinary (dart:async/zone.dart:1342:19)\n' +
'#12 _FutureListener.handleError (dart:async/future_impl.dart:175:22)\n'
+
'#13 Future._propagateToListeners.handleError
(dart:async/future_impl.dart:779:47)\n' +
'#14 Future._propagateToListeners (dart:async/future_impl.dart:800:13)\n'
+
'#15 Future._completeError (dart:async/future_impl.dart:610:5)\n' +
'#16 Future._asyncCompleteError.<anonymous closure>
(dart:async/future_impl.dart:666:7)\n' +
'#17 _rootRun (dart:async/zone.dart:1428:13)\n' +
'#18 _CustomZone.run (dart:async/zone.dart:1328:19)\n' +
'#19 _CustomZone.runGuarded (dart:async/zone.dart:1236:7)\n' +
'#20 _CustomZone.bindCallbackGuarded.<anonymous closure>
(dart:async/zone.dart:1276:23)\n' +
'#21 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)\n' +
'#22 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)\n',
'1.7.2',
'2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on "android_ia32"',
55560
],
driverError: error: insert or update on table "tb_legacy_app_crashes" violates
foreign key constraint "FK_73752be32099db08ae74b3d6695"
at Parser.parseErrorMessage
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/pg-
protocol/src/parser.ts:188:21)
at Parser.parse (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/pg-
protocol/src/parser.ts:103:30)
at Socket.<anonymous> (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/pg-
protocol/src/index.ts:7:48)
at Socket.emit (node:events:526:28)
at Socket.emit (node:domain:475:12)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 303,
severity: 'ERROR',
code: '23503',
detail: 'Key (userId)=(55560) is not present in table "tb_user".',
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: 'public',
table: 'tb_legacy_app_crashes',
column: undefined,
dataType: undefined,
constraint: 'FK_73752be32099db08ae74b3d6695',
file: 'ri_triggers.c',
line: '2474',
routine: 'ri_ReportViolation'
},
length: 303,
severity: 'ERROR',
code: '23503',
detail: 'Key (userId)=(55560) is not present in table "tb_user".',
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: 'public',
table: 'tb_legacy_app_crashes',
column: undefined,
dataType: undefined,
constraint: 'FK_73752be32099db08ae74b3d6695',
file: 'ri_triggers.c',
line: '2474',
routine: 'ri_ReportViolation'
}
#[31m[Nest] 16769 - #[39m10/27/2022, 7:11:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +65056ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/27/2022, 7:12:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +63594ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/27/2022, 7:15:19 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +176646ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/27/2022, 7:17:25 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +126792ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/27/2022, 7:18:19 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +53215ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/27/2022, 7:19:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +59780ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/27/2022, 7:20:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_ping" violates foreign key constraint
"FK_3735a4aa98c707468402cc7d68c"#[39m#[38;5;3m +60019ms#[39m
QueryFailedError: insert or update on table "tb_ping" violates foreign key
constraint "FK_3735a4aa98c707468402cc7d68c"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 16769 - #[39m10/27/2022, 7:50:04 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1785554ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 26573 - #[39m10/27/2022, 8:50:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+935205ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 26573 - #[39m10/27/2022, 11:50:04 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +10804365ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919937787195","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89858"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 14651,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ah8V43dfFwUCf3lHUlsjDIB',
'x-fb-trace-id': 'CQsUUyvywdt',
'x-fb-rev': '1006477071',
'x-fb-debug':
'5HApS5DZH3rBfeJFIzNGx3grKTH0VCAvxMk3beMjxjmZ79LNgVqCasVbazWc1LGcoKcyhZ2m20icdbRN6O
fp+Q==',
date: 'Thu, 27 Oct 2022 14:57:18 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919937787195","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89858"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/27/2022, 3:20:49 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+3105278ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 29606 - #[39m10/27/2022, 5:10:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6584959ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/27/2022, 7:00:00 PM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m
+6565269ms#[39m
#[31m[Nest] 29606 - #[39m10/27/2022, 7:00:00 PM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m +10ms#[39m
#[31m[Nest] 29606 - #[39m10/28/2022, 12:51:58 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+21118717ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 29606 - #[39m10/28/2022, 12:52:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+14844ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 29606 - #[39m10/28/2022, 1:06:11 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+837808ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917976374325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"22284"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 160831,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ar3DxqVaaJr2Qa2cxMAcKE7',
'x-fb-trace-id': 'H9RFqRsx97e',
'x-fb-rev': '1006482567',
'x-fb-debug':
'RElTgbD0LN9xBfcDZGYCroS7jcgmyC0EFHs9ymDC8Cn0a3aYZVQKd0PGSjSOXHGPs0jn6tikq0tkv5VyQw
hY5w==',
date: 'Fri, 28 Oct 2022 01:32:23 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917976374325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"22284"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/28/2022, 3:29:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+8586980ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 29606 - #[39m10/28/2022, 4:01:52 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token in JSON at position 128#[39m#[38;5;3m +1954069ms#[39m
SyntaxError: Unexpected token in JSON at position 128
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:495:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 29606 - #[39m10/28/2022, 5:00:00 AM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m
+3487606ms#[39m
#[31m[Nest] 29606 - #[39m10/28/2022, 5:00:00 AM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m +18ms#[39m
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91878440757","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"99901"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 259993,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AS-PKVioA8565HtIDiWBmQl',
'x-fb-trace-id': 'D28kInUEKA1',
'x-fb-rev': '1006485106',
'x-fb-debug':
'eV8E+2itNXoMPeYuqrDCk8nIX666grtzqZYIiQineE4VbHgpAMpRNOVKuwRhR7ejqIAM/
UzNoUj7b7x3GYWuTw==',
date: 'Fri, 28 Oct 2022 05:17:44 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91878440757","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"99901"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/28/2022, 5:49:31 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+2971366ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 29606 - #[39m10/28/2022, 6:13:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1426488ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917296940488","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"38123"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 337359,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A9XoYdNT9hq2jwQwoxoXFoI',
'x-fb-trace-id': 'GQkMHg0pyYX',
'x-fb-rev': '1006486088',
'x-fb-debug':
'n+ocYcrPOfqtn5/wtr0bjv+77rZZG6M7ea9UEp29p2LNX+/QF/Vpjvr62UbQ+2Q8lK4T73NIBJlbW9sXfv
19LQ==',
date: 'Fri, 28 Oct 2022 08:36:12 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917296940488","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"38123"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918102700711","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45708"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 481663,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AU1Im4V_PcnmPYqmh5FksS9',
'x-fb-trace-id': 'GtuMdAgGoOm',
'x-fb-rev': '1006486510',
'x-fb-debug':
'+HpKlpixCa1Y3Sta291n2C+nZV4mNkuEDe+6cbvyeftlMPcTm3zN+Qy6hLZ096w1leNdIKEPUP6+TxN4G2
W9NQ==',
date: 'Fri, 28 Oct 2022 13:20:12 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918102700711","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45708"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/28/2022, 2:11:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +28692181ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/28/2022, 2:14:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +153343ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/28/2022, 4:46:50 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +9167151ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917988873488","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"20352"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 619483,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AFJPkpDPK70_yFEjy6xwAKx',
'x-fb-trace-id': 'CUrXLdXRSPM',
'x-fb-rev': '1006486510',
'x-fb-debug':
'7HNX9B0CQVuOjH/jW796tNi4GxW1SwBrCNDamdUy8+8YexJ80zLmjLyFe2SGXFx0ZbG9O8AIID7c0mmOJx
XftQ==',
date: 'Fri, 28 Oct 2022 16:52:27 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917988873488","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"20352"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918125743788","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56870"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 631562,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AenvxsfATrfgJG8JU-P4z4Z',
'x-fb-trace-id': 'BOudXXRpAZh',
'x-fb-rev': '1006486510',
'x-fb-debug':
'Nq5crwRevRkeYNNWdptqDBU2sYVncEoYFYJbgyJ4ZIYA4tB85AfuDhOCjlgHvZvdA5QvqO+ISkjSsjfmRm
ohQQ==',
date: 'Fri, 28 Oct 2022 17:25:37 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918125743788","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56870"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918125743788","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"66152"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 632396,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ATlhoNyopaJnpZPR6WVynDs',
'x-fb-trace-id': 'FVzuVhHzKWF',
'x-fb-rev': '1006486510',
'x-fb-debug':
'57l+c5jEJl1d7wJrf2mHiFR0KfltULtZifo5hV31h62cSZ83Iq2Nv1IlvRqaKRZUvn+uEMfpFHLOMKxxYi
6Gog==',
date: 'Fri, 28 Oct 2022 17:30:12 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918125743788","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"66152"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918125743788","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85241"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 632691,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A1dfLWkpufgr2FKinnk7Txf',
'x-fb-trace-id': 'GOGmb2AIenh',
'x-fb-rev': '1006486510',
'x-fb-debug':
'Q7p9uOcwkrHrdnGsFlZMo84I5lYO2xkLqxaA/2aif0SC/gFA6Radt1w1lG3kQ3lNEg6pLbVcsNkf7pH9vU
fHpg==',
date: 'Fri, 28 Oct 2022 17:30:38 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918125743788","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85241"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918446465932","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71698"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 635765,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A0CVOE6DeX1TCt_tfkNh40L',
'x-fb-trace-id': 'GjDV+itYjlE',
'x-fb-rev': '1006486510',
'x-fb-debug':
'mO20H8P5c/ULYP54shkm0V4K8l/zWCpXiNh+DiiPx4DZ6YPDKSUyBTGxQ2AlDsUPe83eGD2qy0XiqFW6Lt
OSig==',
date: 'Fri, 28 Oct 2022 17:34:56 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918446465932","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71698"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91902678148","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"78779"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 659421,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AGPnc8LfHqoNpEaFXv8a3IS',
'x-fb-trace-id': 'GkolMdk40lB',
'x-fb-rev': '1006487723',
'x-fb-debug':
'/fVsYwgfihCouOT91do2cU2DhGPkHru7SjTXJ5BCFn75Ty/MH8d9FomBfZk0ShRWi1tMB7gGCzGrGoRTJ7
aRdg==',
date: 'Fri, 28 Oct 2022 18:04:45 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91902678148","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"78779"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91902678148","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49384"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 659610,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ar-1nNNhMO-KTHCqAUHZDa7',
'x-fb-trace-id': 'Fn6GL8SBwEo',
'x-fb-rev': '1006487723',
'x-fb-debug':
'EJVZlk0qZjVyoQT83HjokBwlJ4d4j0Kr62xCfo3/f24aUsXj5jnCuMNvnSjih9sJOBsL3C1wrxF7MYh31B
PhpQ==',
date: 'Fri, 28 Oct 2022 18:05:29 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91902678148","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49384"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/28/2022, 7:00:00 PM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m
+7989335ms#[39m
#[31m[Nest] 29606 - #[39m10/28/2022, 7:00:00 PM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m +315ms#[39m
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15275"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 691210,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AE71pa7rGKmphLPxVQTOsS0',
'x-fb-trace-id': 'AbOP7toKwdC',
'x-fb-rev': '1006487723',
'x-fb-debug':
'HqaC3FT22D8Wl6hPlBrECZiMrs0KLEO6mIPwfGE7D9hZ0r0WgwneiWK6c0kTEWNnKvLvXeScl3DGuSRBv5
i0Ow==',
date: 'Fri, 28 Oct 2022 19:51:37 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15275"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23373"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 691540,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AsA0OJJD9TNoSVk0_UQYAbg',
'x-fb-trace-id': 'HuMzQ9YCjCb',
'x-fb-rev': '1006489019',
'x-fb-debug':
'SQvrYoh4wvX0LKOOkfGxHYh3XpTX9tlCwOi247X4UQcYIdPgRpVBWVY9R/JnL3a/5eq2N0Fpp4j716QCmm
w6NA==',
date: 'Fri, 28 Oct 2022 19:53:04 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23373"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"48264"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 692032,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AC_oWf9FK8JpxCkzqmEABOa',
'x-fb-trace-id': 'G1rwTmFtlhz',
'x-fb-rev': '1006487723',
'x-fb-debug':
'fJMTFY+Zyu5rjkngIwOEDd+UFFq15MugmyBu2+xrgwW7TJNj+WeIbm/P8pkrzMPebAuSkENpqkorKmVtet
DftQ==',
date: 'Fri, 28 Oct 2022 19:54:23 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"48264"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"99107"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 692225,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ad7Zh2ZM4iDCo1RTDYZbbR-',
'x-fb-trace-id': 'CB0HEkoC2i2',
'x-fb-rev': '1006487723',
'x-fb-debug':
'83XktYZ7bqUhi7R2dvxh9WIWFepldXPHpTMey2rnNfEUu07VNpN602jp24AoZD3GCP6Ifq1KxZB+NSUeLG
BiTg==',
date: 'Fri, 28 Oct 2022 19:55:21 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"99107"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85419"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 692603,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A5SuM14VeBcaFikPiuBWglX',
'x-fb-trace-id': 'A7FWDUnYXrK',
'x-fb-rev': '1006487723',
'x-fb-debug':
'O/XEZuJB3dZpNN/FssuP7zvlcTiyNFkGiNX0Mj7tjUa/IcK+qXg4ha3S1pSl03JlEpZqKTdMK6/
eiUOTqPjf2A==',
date: 'Fri, 28 Oct 2022 19:57:10 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918429894384","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85419"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91810317669","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"64293"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 725311,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Apa3mfFz2yvBcZ3T9GDnljl',
'x-fb-trace-id': 'E4WsvMO0pST',
'x-fb-rev': '1006491915',
'x-fb-debug':
'8v5WelG2m8K+OOJ2avl3imv/nBX04GkPX14xEh/n9bLt2bXTVXLF4tdUwxHwacc40ITiiAbXHsLLy0su3O
p3qA==',
date: 'Sat, 29 Oct 2022 00:17:54 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91810317669","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"64293"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91810317669","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54290"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 725454,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AwpbF4PcUwEdUMNEkVcvs6o',
'x-fb-trace-id': 'CpRQ2zZlryn',
'x-fb-rev': '1006491915',
'x-fb-debug':
'+TBr1+4fbkpV37gcQvgOYPsTFDsIp5vKu/+CCbJmjwwT9eNhaQ+CdSYetSg4TKCLygUm2wi8yVqvu+NscJ
tOwQ==',
date: 'Sat, 29 Oct 2022 00:18:26 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91810317669","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54290"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/29/2022, 12:48:32 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+20912552ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91983845505","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"98287"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 795406,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AvWMqdfyr6lbTx72A6RgOki',
'x-fb-trace-id': 'EQprgrepn9K',
'x-fb-rev': '1006493006',
'x-fb-debug':
'tFQQcNfmr89YuD4uw+XYXWYaLBznNzZsv5BZVpmIxrm82sH7if6FCIgmuTkCnG+XdiUy4+6yV7X/
p7ZlJHsI+g==',
date: 'Sat, 29 Oct 2022 03:28:58 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91983845505","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"98287"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91983845505","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61642"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 795586,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A3Yi2sq15dtAeXMzey75Ja_',
'x-fb-trace-id': 'CTmRGQ5ik8T',
'x-fb-rev': '1006493006',
'x-fb-debug':
'rb1NRFR0aoXR/W3OM6Re0E9Pucfywv07z3Y82RAra+zYOaL/VoRj+U+SJH1NqxdtUTBlFSIN1UV54/
SisFkM2A==',
date: 'Sat, 29 Oct 2022 03:29:29 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91983845505","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61642"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/29/2022, 5:00:00 AM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m
+15087245ms#[39m
#[31m[Nest] 29606 - #[39m10/29/2022, 5:00:00 AM #[38;5;3m[Scheduler]
#[39m#[31mQueryFailedError: syntax error at or near "."#[39m#[38;5;3m +10ms#[39m
#[31m[Nest] 29606 - #[39m10/29/2022, 5:52:33 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3153184ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/29/2022, 5:59:34 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token # in JSON at position 124#[39m#[38;5;3m +420941ms#[39m
SyntaxError: Unexpected token # in JSON at position 124
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:495:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917891330722","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"37790"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 898695,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AWTHK8yus_A__QV_xTTUKzb',
'x-fb-trace-id': 'H0fm8tDNoAi',
'x-fb-rev': '1006494986',
'x-fb-debug':
'l2PKi5HcO0PtogKo7UAjnIYZOtVHOO9OzHbOqNPMDXt2CIYO76+zV0Oml9EoGafCXGgEFpA7vWJrKGbG7X
enkA==',
date: 'Sat, 29 Oct 2022 07:26:26 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917891330722","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"37790"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917891330722","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94365"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 898805,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A_2XE_K9gedrRhoR3GSfgsJ',
'x-fb-trace-id': 'E3B8E6g5Z4K',
'x-fb-rev': '1006494986',
'x-fb-debug':
'ZNI87fHKwxonw19B2cHfYGQ4c4OwXbHs3UwN9s5wXHcJ9IMsH1aOspIviogsZNbfjK8ueXfUwkXs+zfuVz
AANQ==',
date: 'Sat, 29 Oct 2022 07:26:34 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917891330722","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94365"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/29/2022, 7:26:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +5227861ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/29/2022, 7:26:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +11068ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/29/2022, 7:27:03 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +10182ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/29/2022, 7:27:16 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +12950ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917891330722","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"18421"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 902290,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AqqcxbFwJr6zgO8JrFN-gT_',
'x-fb-trace-id': 'CtF95tg4mXA',
'x-fb-rev': '1006494986',
'x-fb-debug':
'o9Be4AVYIqU/S/xiQoUek30CJsqFDvw5Cpu7WYv6DNeVYyxoZXGdUFufes3dgc3MKoVNMTmZOBn8Apbjo7
zZ7w==',
date: 'Sat, 29 Oct 2022 07:35:57 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917891330722","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"18421"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/29/2022, 9:42:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +8125964ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919678408825","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"76014"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 972716,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AXUmqZ4edgp3TXAuIKCLuV1',
'x-fb-trace-id': 'A6bTyG52KfG',
'x-fb-rev': '1006495082',
'x-fb-debug':
'RoYPJT+htWAO3clOwaWKUP0VHxUl09seTck/wtbCQFNyVG0An33I2FkJ/A9UgTj6P3xao6KfimvXppSKv8
Mdxg==',
date: 'Sat, 29 Oct 2022 09:54:11 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919678408825","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"76014"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916350200484","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"37087"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 989219,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A8cKl_OAQ0bYibhhyy0fnto',
'x-fb-trace-id': 'HVgcg1eV9Kw',
'x-fb-rev': '1006495082',
'x-fb-debug':
'PXF9VmaJKtxXJPBV7914Wlz0kEe+nQQDHYtGi70QklnAWwzBZjfNb23fzzRwMVTJoxHf+F5zO4gl5aaBpw
e2vQ==',
date: 'Sat, 29 Oct 2022 10:31:54 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916350200484","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"37087"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918055063054","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"64016"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1011314,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A9nMxJImE5mlzbwOBa7XDEy',
'x-fb-trace-id': 'GuwUuXFREwN',
'x-fb-rev': '1006495141',
'x-fb-debug':
'zhq7wV5wJVOo9BEqBgiVQ4JqvOFdLFxxbOv1hZWdceex8BGtf20xCYFZK2fC8hXwGNSLAob/
vr0tmR1QGg+Z0w==',
date: 'Sat, 29 Oct 2022 11:52:53 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918055063054","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"64016"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1051094,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ApDxItOIbLa7xhOoQyAQKt3',
'x-fb-trace-id': 'BU6XuOVToKv',
'x-fb-rev': '1006495161',
'x-fb-debug':
'OhG6Sv7q7Ywgm85mPLAkn2M7lVl6S+VoIGDDXdZtjLgL0+TFLkkGLTqE5DhDKUtOA82KkN90ep08USeRmX
oW3w==',
date: 'Sat, 29 Oct 2022 13:47:13 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919864622154","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89198"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1051507,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A2IlaRquQNQYXgFymepNIon',
'x-fb-trace-id': 'DAcO7m5pw2S',
'x-fb-rev': '1006495161',
'x-fb-debug':
'Wx/S0hmydBVYjNirackGBpLhqiYy2cNsN5ZBCoQSVTZTgSmjG7inxomOEvbBVbx4coDBDA5ApbCA8MWreT
kcKA==',
date: 'Sat, 29 Oct 2022 13:47:36 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919864622154","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89198"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/29/2022, 1:47:55 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +14713132ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/29/2022, 1:48:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +7847ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917982812499","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"47959"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1066177,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aa0ZXvp_OwnysMBPtbh8wSO',
'x-fb-trace-id': 'CUd3IYab7VQ',
'x-fb-rev': '1006495161',
'x-fb-debug':
'2Jc/KcbEo+gfDXKkQ0bxYXEhv0adEaqhMeft/T8pbIyCyIdhXPzLErD4dckyVesv+g48+2stfXuGMroUg9
gTzQ==',
date: 'Sat, 29 Oct 2022 14:30:14 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917982812499","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"47959"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919977498817","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71306"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1073669,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AYoq7N8je_niJnSi1X-G96X',
'x-fb-trace-id': 'CsiJfIPLYIj',
'x-fb-rev': '1006495161',
'x-fb-debug':
'T/qJ54Wl8uWSRHkcN3tl5kZO8vXCeFxrWzgIrIA/s8TRIRPsOz6qBiygXisi3weXnVrFbnCt1Ks7m+0XGh
BB9Q==',
date: 'Sat, 29 Oct 2022 14:54:57 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919977498817","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71306"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/29/2022, 2:55:31 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4048322ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 29606 - #[39m10/29/2022, 3:54:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3525497ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918530310865","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11779"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1135935,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ABZTjXFdPODdAzptErM0rTS',
'x-fb-trace-id': 'FLgT/2X0LTl',
'x-fb-rev': '1006495185',
'x-fb-debug':
'3NPw7ztDeZbk3jlrVEZiitNSsLkwu6jIUWjfMEppDKKbgDHKTDYxrArYzu0/NnP/kcqr7Ro7uql5W/
XjOX5EJQ==',
date: 'Sat, 29 Oct 2022 17:08:24 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918530310865","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11779"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/29/2022, 5:14:35 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+4818053ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916378317639","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"46649"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1148184,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ADPEgU7NHbcQoVale9s5od2',
'x-fb-trace-id': 'GsVfiEu5Eb9',
'x-fb-rev': '1006495185',
'x-fb-debug':
'D6ZyeHQqE6WHwOqOW3P5XMUp+3HZg4QiFDMLvdNklc3qgFt09tYyDeBKQe7LWVf3S6qzHDAJmNIHtNOqkm
a8Sg==',
date: 'Sat, 29 Oct 2022 17:44:14 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916378317639","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"46649"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 29606 - #[39m10/29/2022, 5:44:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1780127ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917982812499","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"58425"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 19589,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AvtFHQHyl-EYBH1bddodkrZ',
'x-fb-trace-id': 'EQEMyS14iJo',
'x-fb-rev': '1006495306',
'x-fb-debug':
'yQeD42euXRglfEE5bi2HF5qUS7HR3DZ/pDMPPuE8zqKBBJfJVBl8jUXko14QmDW/un2+urgSxbPc7TvKBN
DseQ==',
date: 'Sat, 29 Oct 2022 20:09:19 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917982812499","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"58425"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 46376 - #[39m10/29/2022, 10:29:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +14035803ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 1:05:56 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +9413162ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 2:33:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5265679ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 2:33:56 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +13734ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 3:00:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +1579280ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 3:20:44 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+1228833ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918076206999","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71308"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 121555,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A4BycIopyJOtTemkoKjfLfX',
'x-fb-trace-id': 'H/eIxKOPt99',
'x-fb-rev': '1006495553',
'x-fb-debug':
'4FAvyED1fPdP16HkvxBF7wEg61cUJ9Vx/wqX5NpObTgiEE4DTeAx/uiD6PIMUgZeUb0anFJxuPAdU8GZgI
PfWA==',
date: 'Sun, 30 Oct 2022 03:55:31 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918076206999","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71308"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918076206999","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80256"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 122139,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ag34aGPp7jK7yF6kCHeoz47',
'x-fb-trace-id': 'E9mC3hR6XrS',
'x-fb-rev': '1006495553',
'x-fb-debug':
'46yFEUmdmqb0b31PnaCZonz3mSdTsBM/aAhmhdI8YqTCeH3M8RbC2Dn779EZvz3vVoTVuo1sD5R5hJzg6P
8cZw==',
date: 'Sun, 30 Oct 2022 03:56:30 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918076206999","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80256"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2977825ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:24 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2093ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:26 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2679ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:27 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +297ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:27 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +224ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:27 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +294ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:28 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +272ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:28 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +206ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:28 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +187ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:28 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +213ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:28 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +201ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:28 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +152ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:29 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +205ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:29 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +162ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:29 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +209ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 4:10:29 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +156ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917404223079","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"10713"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 136425,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AK8dIvPn2RhVlJ9RyrS5Lzf',
'x-fb-trace-id': 'El7B9DeWpY/',
'x-fb-rev': '1006495611',
'x-fb-debug':
'8ePV0aZSvHzPIzv7DW6xq5CjMxJeVOBpTuAWo3jcqgalU+CGLqu36CugE6DSDHUjaVJPzLB7OS9YcdlvDh
TfxA==',
date: 'Sun, 30 Oct 2022 04:24:21 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917404223079","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"10713"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917404223079","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12994"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 137251,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A9fRUOdeKoP7LTGcYJEXN1q',
'x-fb-trace-id': 'GULxohGjjUZ',
'x-fb-rev': '1006495611',
'x-fb-debug':
'8NO1aUSzBxUFnxVMjbdEq9WUGNKZehFNpTGOhESVQW0PQnhTTSONaE0Kqm3V1ijkCYnV/
Mbs+sil86EVaO5lOg==',
date: 'Sun, 30 Oct 2022 04:24:57 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917404223079","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12994"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919669988637","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"33472"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 165656,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AtyLhhvnirT17cdoXc0Pk3i',
'x-fb-trace-id': 'Bp96BNTb4u2',
'x-fb-rev': '1006495611',
'x-fb-debug':
'qoo8kScHt9P29HcV5K3etNwirZNZli2hUjqlYo4SSSnYsFQHSuxKCDjx4HEY/YwNc3dYY+ueGrM9mCkWcE
DYoA==',
date: 'Sun, 30 Oct 2022 05:18:27 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919669988637","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"33472"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 46376 - #[39m10/30/2022, 7:05:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +10484163ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:11:33 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +379356ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:11:36 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2837ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:11:37 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1792ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:12:19 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +41530ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:12:21 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1941ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:12:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +945ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:12:23 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +932ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:12:23 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +653ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:12:25 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1670ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:12:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +18429ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:12:45 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1380ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:13:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +15234ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:13:02 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1504ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 7:23:31 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "school_name" violates not-null
constraint#[39m#[38;5;3m +629425ms#[39m
QueryFailedError: null value in column "school_name" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 46376 - #[39m10/30/2022, 8:13:48 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot save, given value must be an entity, instead "dsfsdf" is
given.#[39m#[38;5;3m +3017390ms#[39m
MustBeEntityError: Cannot save, given value must be an entity, instead "dsfsdf" is
given.
at MustBeEntityError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new MustBeEntityError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/MustBeEntityError.ts:8:9)
at EntityPersistExecutor.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/persistence/EntityPersistExecutor.ts:45:35)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.next
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:117:75
at new Promise (<anonymous>)
at __awaiter
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:113:16)
at EntityPersistExecutor.execute
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/typeorm/persistence/
EntityPersistExecutor.js:37:38)
at EntityManager.save
(/home/ubuntu/SunoKitaab-APIs-Build/src/entity-manager/EntityManager.ts:337:14)
at Repository.save
(/home/ubuntu/SunoKitaab-APIs-Build/src/repository/Repository.ts:151:29)
at ContentService.createQuestion
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/content/services/
content.service.ts:1339:57)
at ContentController.createQuestion
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/content/controller/
content.controller.ts:339:36)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919529497916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"96321"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 253765,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ad75p2FJphcAjwnrZPZyLcg',
'x-fb-trace-id': 'Fy97HFLs9jZ',
'x-fb-rev': '1006495659',
'x-fb-debug':
'3pfakzBA+TnrLLg/AbiYCXotRNbSqTL8u2kZ3WxEmLMnlQg+Eo0Wx0G+BKqOHcDgkhuLc5S77s3uwVnnbB
ubgA==',
date: 'Sun, 30 Oct 2022 08:20:15 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919529497916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"96321"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 46376 - #[39m10/30/2022, 10:02:27 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6518794ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9183","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"68384"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 199
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 292351,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 199,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AAtzbQCNJ3RUncnMkOFz3a8',
'x-fb-trace-id': 'CJpM61IBXX/',
'x-fb-rev': '1006495699',
'x-fb-debug':
'7zMhld/rN9+dUwwsE24zavoCWYl6LyJcaTLxvyttx9cNpaH2yDYOwoPgSYG7bfKTkGWF5rjKu1PBpiShBu
45uw==',
date: 'Sun, 30 Oct 2022 10:04:51 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9183","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"68384"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919473436465","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25933"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 317232,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A8-wm7B62OcSH6aSG3SS94g',
'x-fb-trace-id': 'AnpWPL2+ovL',
'x-fb-rev': '1006495699',
'x-fb-debug':
'6wLFpw8D4oPA3BPZyHOLnefnSqwrargU1yri6qkIxjDk+Jvi/GIkz6fHr5wbo22iTBXRwapw8U6UqrYOu3
+gGg==',
date: 'Sun, 30 Oct 2022 11:14:28 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919473436465","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25933"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m10/30/2022, 12:33:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+963044ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/30/2022, 12:33:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+7582ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/30/2022, 2:17:44 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +6274196ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/30/2022, 4:20:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +7383126ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919168185295","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"55281"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 135884,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ARp5cxPXASRYQRYl547W5WV',
'x-fb-trace-id': 'COtEfzlrShd',
'x-fb-rev': '1006495877',
'x-fb-debug':
'lzp0SjS7IO3KwGDHUdM+c0xaBPB2Df03+lXg0Zb5w24430EDvAL774sqocfA6Ch0uLzcBsYgIe0DUPWqIz
hfSg==',
date: 'Sun, 30 Oct 2022 18:37:11 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919168185295","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"55281"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m10/30/2022, 6:40:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +8360671ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919713262502","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79781"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 142138,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ACibrpEHPqiJB_TnE1vAV1Q',
'x-fb-trace-id': 'CYEaVB0zpQ5',
'x-fb-rev': '1006495877',
'x-fb-debug':
'4lAmrozX+13oG0L9wSRNfoF78cxMnSjTbv9GU2rQv8bU87tLZIP+oxk38u0EDpubzGZ1JTtHWEXCLmqeF5
QuCw==',
date: 'Sun, 30 Oct 2022 19:24:06 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919713262502","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79781"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m10/31/2022, 1:05:03 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +23095984ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 2:44:39 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5975877ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917607518542","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56282"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 209766,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ADUNv8KZx7ZGy_71ytTEubg',
'x-fb-trace-id': 'BqAFqVYYnXT',
'x-fb-rev': '1006496212',
'x-fb-debug':
'F4MSMAuLor9m+mPslefe0U1xFAQK4x1uwcovXd4hdcV+6uxknPa+XUxdl+stu3DxbMkvD3xdXcXL7c0ZIu
sxQw==',
date: 'Mon, 31 Oct 2022 02:49:51 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917607518542","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56282"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m10/31/2022, 2:49:59 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +319950ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:09 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7929768ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:14 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +4699ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1314ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:24 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +9028ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:25 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1056ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:26 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +716ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:26 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +564ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:26 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +133ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 5:02:27 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +757ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919415565170","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57010"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 289216,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ADclJYm4Nlsv1cyjCa7_GEh',
'x-fb-trace-id': 'EFW+RrZu9nV',
'x-fb-rev': '1006496355',
'x-fb-debug':
'A+SOS7oXs4L7jOiEVx5yQIoftN+bKHm6IymRqkdi3VGd7l3qjdWwvu/IjwxcNuQOdT2pMvWZ9G6VbaXTC2
w07w==',
date: 'Mon, 31 Oct 2022 06:24:13 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919415565170","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57010"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918787280647","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"83033"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 299037,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AxS_8oFqFXD9DUzxFNvSCkx',
'x-fb-trace-id': 'BHApkDeq0Uh',
'x-fb-rev': '1006496476',
'x-fb-debug':
'WmO7EZP8ws4eNQf2aWXl66iEStkBmjbtXr1ysxeJv/EA4mhsvbRrjZEGZ/2d5OXrJEkHoBgjBk7UIOOEhG
uFHQ==',
date: 'Mon, 31 Oct 2022 06:43:53 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918787280647","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"83033"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918787280647","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79644"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 328891,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AXK56OThjpvG_ss3tuPZTlw',
'x-fb-trace-id': 'CT7AIuech4s',
'x-fb-rev': '1006496476',
'x-fb-debug':
't5WDZNeF4LXKdp6gQntos+/XHWZxERukp22cTUBxgANA5kUzDi8bJ5STwzh1JLnJPfAqCmQ3dazQvIawYK
Y1tw==',
date: 'Mon, 31 Oct 2022 07:32:40 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918787280647","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79644"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919764387791","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23259"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 343363,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ADblj6HbUWvL67nv3-HEblK',
'x-fb-trace-id': 'AHJvE/RMOVS',
'x-fb-rev': '1006496476',
'x-fb-debug':
'uQwjloK9Vrei0oDeCcmv5xALtkOTQtlHq8WFvSO/uSNcziGbo+plvZGYOb0akNfl3h6f5h6VMoHvlIfpSN
ioWA==',
date: 'Mon, 31 Oct 2022 08:09:18 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919764387791","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23259"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917906087477","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67938"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 354256,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AwttqKMPJWE6aHjU5KhCWWM',
'x-fb-trace-id': 'BeKIxE97QvX',
'x-fb-rev': '1006496604',
'x-fb-debug':
'Px3eHLxf2C1CXMZRWgXjAndXW4rhcN7jqaqrQGcTr8ZzuvHnOr7YpQS3K8x5kh9LeMcVNZuYFOeROu2jFJ
I4Gw==',
date: 'Mon, 31 Oct 2022 08:42:19 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917906087477","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67938"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m10/31/2022, 8:47:03 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+13475653ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28915"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 400138,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AL80zh9A-6pBMkitD50NBr4',
'x-fb-trace-id': 'DXjN/6EpnzH',
'x-fb-rev': '1006496684',
'x-fb-debug':
'mdSbLNUeCWJrGFQNM5UWZUjp4I8nkxL2nm/X+4Ms9feLE+zcwIz0MIgo6S3IJC8sJmGtoOM7sRQC4hAd4A
8NNw==',
date: 'Mon, 31 Oct 2022 10:16:38 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28915"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17505"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 400645,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AqL8KR3zesPCB67U0PLYu5B',
'x-fb-trace-id': 'E8DNTQJiYz4',
'x-fb-rev': '1006496684',
'x-fb-debug':
'4Xm2ftws/qpqXrPbZ0qJ7+9cGZzhxDpV70mrSgCN8ukCobcaT+roiTkyJ/UBfMRz87JxAKIQVsfdTKsLrj
UmMA==',
date: 'Mon, 31 Oct 2022 10:17:39 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17505"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21529"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 400903,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A1r4ZD3ITwJBbxWKkBAmNA_',
'x-fb-trace-id': 'BjmC07S8AU6',
'x-fb-rev': '1006496684',
'x-fb-debug':
'lmOjuexX3lwWGXlYeiA0q9M41s3cAJvak3EfKlU9YjDolm+VpcjvHuzQ+fXdVYZs1CK9F4JAje4Z3eFOkQ
4V2g==',
date: 'Mon, 31 Oct 2022 10:17:47 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21529"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43617"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 401011,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ANpEeWjxzENfcHTbJrf7qcl',
'x-fb-trace-id': 'CPc3XagCf1+',
'x-fb-rev': '1006496684',
'x-fb-debug':
'u6KvAQj12OYKx8c79lmfK8NMvys7F6CExzqVdJXlAw69xhBIIErh+H/loULR0YZa92J6Ve3rUdoEs0AzWY
Q3AQ==',
date: 'Mon, 31 Oct 2022 10:17:51 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43617"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12705"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 401119,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AifoPSh36Q6vBWgBwAWTDhC',
'x-fb-trace-id': 'EI2U4HkKbdq',
'x-fb-rev': '1006496684',
'x-fb-debug':
'VnJaTdxwmx5XlPNfR6dRMwca0UK4UZHcUjyZ/wh9AuuYt6qZzKZ3AgvltvWTiuQmuy4yu1+yEUoi6byDoc
Hj/A==',
date: 'Mon, 31 Oct 2022 10:17:57 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91955719889","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12705"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m10/31/2022, 10:54:25 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7642386ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 10:54:41 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +16160ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 10:54:54 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +12363ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 10:54:59 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5082ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 10:55:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +694ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 10:55:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +222ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"53851"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 488784,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AmcpPv4MhARyzfAm8nT08BQ',
'x-fb-trace-id': 'Ht2yiqujrdd',
'x-fb-rev': '1006496828',
'x-fb-debug':
'in7gRubX8zBi3O0JfufiKOEaOVXCNKXQZHSjRc80pg5Qs4KB7eh7edWZpThBLyKlKNk20wJkJUieI04ehz
l9cA==',
date: 'Mon, 31 Oct 2022 13:08:20 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"53851"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56256"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 490310,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ANo6Hz3sOjgeaeYCULXmlXr',
'x-fb-trace-id': 'G7UPSGHD2dz',
'x-fb-rev': '1006496828',
'x-fb-debug':
'QkX0HUqwYZT4P8TeXgrwTAZqhUlQJKTorEXOLKjYYFFM/oKJ+v121HVLtUUUmGZb2e9uk2oz7WIsIZQXae
/j0w==',
date: 'Mon, 31 Oct 2022 13:12:03 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56256"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m10/31/2022, 3:37:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +16938019ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 3:39:58 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +160443ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 3:40:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2034ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 3:40:11 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +10828ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 3:40:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2173ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 3:42:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +106385ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 3:43:27 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +87413ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m10/31/2022, 3:56:01 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +753548ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918302749688","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"82269"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 587261,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AhGjLuDrNYyrGfoBLpxl9xO',
'x-fb-trace-id': 'GG6BtVDgOpW',
'x-fb-rev': '1006496828',
'x-fb-debug':
'OQvoXDxpDFwDjqF3OoEklArbGXgGwEZgPG5quvOepHzGEl5J+MX78KibDTvExE2H20QkM9jO9un45UsE1i
hrGA==',
date: 'Mon, 31 Oct 2022 16:09:03 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918302749688","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"82269"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m10/31/2022, 4:09:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +795435ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+914475911956","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91418"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 653207,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AUWUp_BuRZzc_gJt5n88fYC',
'x-fb-trace-id': 'ARTbgk+/QyD',
'x-fb-rev': '1006497638',
'x-fb-debug':
'L1IaKFsmN5bhxQJOTmhxPcW5kdiCy1ly1QkjwClMYrcsMeDnRRsU4ZGJPpCXAsk12rp7qJAVbjkoscs9EC
gDHw==',
date: 'Mon, 31 Oct 2022 18:46:52 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+914475911956","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91418"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919185278342","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89138"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 653447,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AUzfbkvUZLJRgtsyh5BFxGm',
'x-fb-trace-id': 'FehVa5CZzUA',
'x-fb-rev': '1006497638',
'x-fb-debug':
'S8o8DkXCxvYna0qX6CJ42NpO03ZhvcGcp1E19Pa4j9voy9E5mafi1KUM47/aKe8B3XaH6jjwDazOP/
xkYeYEmw==',
date: 'Mon, 31 Oct 2022 18:47:53 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919185278342","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89138"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+912086213307","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56462"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 653814,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'APamRzDQUiRKcsnXjPh2qPy',
'x-fb-trace-id': 'G6xYGcheR7H',
'x-fb-rev': '1006497638',
'x-fb-debug':
'1vq1PyAJxLyByvFSSQ3NmhWeLCB8pX3s/WC+LLvDWRMMqxiNATLH9qSBJ4ANk4+XNxAiyBwy8LdpO97Mz3
mWjQ==',
date: 'Mon, 31 Oct 2022 18:49:25 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+912086213307","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56462"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data: '{"messaging_product":"whatsapp","to":"+9121 091
37931","type":"template","template":{"name":"auth_otp","language":
{"code":"en_US"},"components":[{"type":"body","parameters":
[{"type":"text","text":"95112"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 209
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 653949,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 209\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 209,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AWvQ-PRdMZdDTws8ddUbB45',
'x-fb-trace-id': 'C6ON3S91/WG',
'x-fb-rev': '1006497638',
'x-fb-debug':
'Gu2Fl9TL2hTSFm4bgg7N5UdWccRuPoTLEosbRE+7nypvlczw8P+7Jh0GpuxNOCGxFXMS61looYiWx+xmNb
JMAw==',
date: 'Mon, 31 Oct 2022 18:50:29 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data: '{"messaging_product":"whatsapp","to":"+9121 091
37931","type":"template","template":{"name":"auth_otp","language":
{"code":"en_US"},"components":[{"type":"body","parameters":
[{"type":"text","text":"95112"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 209\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917428730894","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21258"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 654225,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A01xm6pUEsSD6MJjQWNFPzI',
'x-fb-trace-id': 'GYSDmV8zdN0',
'x-fb-rev': '1006497638',
'x-fb-debug':
'GahWuEDF6/hKhjfCbBGo4mhauPhsrAXbc96VJMQR1BpmO8eamdl5pzo3sxmcfOv+4oRQm6FlUc3M/
Gr2szhAgQ==',
date: 'Mon, 31 Oct 2022 18:51:58 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917428730894","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21258"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917428730894","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"69375"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 654377,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AccRKGd7ljkR0V_uI_I71bt',
'x-fb-trace-id': 'C0nrVshFL/6',
'x-fb-rev': '1006497638',
'x-fb-debug':
'WEBy8IZX6g6bnGAlzIuEe611Y2uskNMcnrCrqOLyvRt4bCKhWY8YuTscJOROL/Z3fMeG3/
QwBg8BjDDBX84ACw==',
date: 'Mon, 31 Oct 2022 18:52:37 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917428730894","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"69375"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91917428730894","type":"template","template
":{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72856"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 209
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 654473,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 209\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 209,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AQv2k0bYyP1CME1xteLonV7',
'x-fb-trace-id': 'HNtrvzwhhy2',
'x-fb-rev': '1006497638',
'x-fb-debug':
'3hTRWytAg+rFCJnXF7KJ0oIDpQXCggaJOeNy3X+9F0QbNnn2nSVio2p0/U+pxy+fSSp5ndzMJ4Q2boix3+
X6ag==',
date: 'Mon, 31 Oct 2022 18:53:02 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91917428730894","type":"template","template
":{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72856"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 209\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916201448124","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"74823"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 779584,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131009)
Parameter value is not valid"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AjSMYjeGdUvfLYjt5NvbfNv',
'x-fb-trace-id': 'Eduk2wzF0hq',
'x-fb-rev': '1006502582',
'x-fb-debug':
'ApjgxV5XdqQ8Ss6ND/5n58l+qP0NdUjYpQto7o3xYUBmc7X+h3gQba1vkGwcEBOjaDCstfdEypspkTsmwh
7NFQ==',
date: 'Tue, 01 Nov 2022 03:11:39 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '239'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916201448124","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"74823"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m11/01/2022, 3:26:19 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +40623273ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 53375 - #[39m11/01/2022, 5:34:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCommand failed: /home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-
video-info-url/node_modules/ffprobe-static/bin/linux/x64/ffprobe -v quiet -
print_format json -show_format -show_streams https://sunokitaabfinal.s3.ap-south-
1.amazonaws.com/Edited UPBSE Primary/Class 4/कलरव UPBSE/cl 4 hin ch 02 pyasi
maina.mp3
#[39m#[38;5;3m +7675442ms#[39m
Error: Command failed: /home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-video-
info-url/node_modules/ffprobe-static/bin/linux/x64/ffprobe -v quiet -print_format
json -show_format -show_streams https://sunokitaabfinal.s3.ap-south-
1.amazonaws.com/Edited UPBSE Primary/Class 4/कलरव UPBSE/cl 4 hin ch 02 pyasi
maina.mp3

at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1090:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 5:34:38 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCommand failed: /home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-
video-info-url/node_modules/ffprobe-static/bin/linux/x64/ffprobe -v quiet -
print_format json -show_format -show_streams https://sunokitaabfinal.s3.ap-south-
1.amazonaws.com/Edited UPBSE Primary/Class 4/कलरव UPBSE/cl 4 hin ch 02 pyasi
maina.mp3
#[39m#[38;5;3m +22924ms#[39m
Error: Command failed: /home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-video-
info-url/node_modules/ffprobe-static/bin/linux/x64/ffprobe -v quiet -print_format
json -show_format -show_streams https://sunokitaabfinal.s3.ap-south-
1.amazonaws.com/Edited UPBSE Primary/Class 4/कलरव UPBSE/cl 4 hin ch 02 pyasi
maina.mp3

at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1090:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 7:10:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5764947ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 7:10:49 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6581ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 7:11:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +20264ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:57:38 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+6388735ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:57:47 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+8401ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:57:59 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+12761ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:58:56 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+56398ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 10:22:11 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4995326ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918250886424","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65415"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1051030,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Amwt5JudF9_c020SPQY3lcf',
'x-fb-trace-id': 'EoQe0zFGWSw',
'x-fb-rev': '1006508415',
'x-fb-debug':
'I2OjjGIXaQxZkI3ZbNjs8NAWYAT9kz+KSSxKKCUIRj4b5N5W9z3KeSnwhvs5VlDgiAJI4D8TUd7y9rZiOU
BIyw==',
date: 'Tue, 01 Nov 2022 10:31:02 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918250886424","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65415"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m11/01/2022, 10:39:57 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+1066280ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 10:40:33 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+35545ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919182205644","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19128"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1071676,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A4Jpdt8IsyF0Wk9lVsl4zaF',
'x-fb-trace-id': 'G4gQzg+dcDp',
'x-fb-rev': '1006508415',
'x-fb-debug':
'KiVT9jLUVNhmhMWTeuOYPAOFlv9hmFU9Ml+/sNj+mzDdqMwitywI6cHIJxJcf8Tqvi5LqE5mtUYktfi0eE
6seA==',
date: 'Tue, 01 Nov 2022 11:01:05 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919182205644","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19128"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m11/01/2022, 11:57:45 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token # in JSON at position 300#[39m#[38;5;3m +4632020ms#[39m
SyntaxError: Unexpected token # in JSON at position 300
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:495:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 53375 - #[39m11/01/2022, 12:32:53 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+2107981ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918090104837","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72250"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1169366,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A6e_vre_j5ingJ3l8OCRaeL',
'x-fb-trace-id': 'F+X/qAJGXiM',
'x-fb-rev': '1006508415',
'x-fb-debug':
'EyQJb+xTpAENPcSdg//G10EwLQFVtk4wJg8gMCBQNAWqbUKV54lbm4eZ+0GoEI5xaA8cKRPrLF4p1Ux5UM
M9Sg==',
date: 'Tue, 01 Nov 2022 13:52:32 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918090104837","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72250"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m11/01/2022, 1:55:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4934668ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91222640391","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"10150"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1177342,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ae9b4zo-jqCEFRqO0UEBl4h',
'x-fb-trace-id': 'Eu7qZxahoCs',
'x-fb-rev': '1006508415',
'x-fb-debug':
'zRx+yUPzW3iMFt3mP9YUnBCIDh0ePhO78UdNqvHZkyyS/eCouUNoolSAYFmKu1eKGFQqRKXDaO0ClU/
lDvgokw==',
date: 'Tue, 01 Nov 2022 14:00:59 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91222640391","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"10150"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916394310194","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81916"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1178324,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Arx67GXT7tfweoDo6w-XHh9',
'x-fb-trace-id': 'D8hjYpaD1ZQ',
'x-fb-rev': '1006508415',
'x-fb-debug':
'/nUZ7/riKJeR2KCk55lW7Zr85+UWwEdyGJdYysRRovgvuejyIGwdYHDIh8vSGthNMYePUDMtuIdwZhkBm2
iBJA==',
date: 'Tue, 01 Nov 2022 14:02:14 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916394310194","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81916"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +544276ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +3108ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +243ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +478ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +98ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +87ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +212ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +338ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:04:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +159ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 2:06:37 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +140042ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 3:15:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4111197ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94873"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1282088,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AX4P9Zy1Yan_YPKksHEhq2k',
'x-fb-trace-id': 'CfsIO56gqlh',
'x-fb-rev': '1006508415',
'x-fb-debug':
'Ypn0+7W/6GjhVnOOQq9e2raYpCGY46zdgsdBbYMSWWyjJZ/Q6KehWuWE76r3droGkhwR3ecFQ0TFrTRiXe
Gp+g==',
date: 'Tue, 01 Nov 2022 15:55:41 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94873"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84632"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1282538,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AxobnfjU03LEGokYvkX25XA',
'x-fb-trace-id': 'HBZ+cAsPPcS',
'x-fb-rev': '1006508415',
'x-fb-debug':
'nLm6Y8C1pmg95UmkvkSmy5TYJ9dbXNy34UrnFa6+/lX1R6BWhkQ5ID0M7M4FyS5vDCLsCRdtra5mKzZbli
euQg==',
date: 'Tue, 01 Nov 2022 15:56:28 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84632"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m11/01/2022, 4:03:40 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+2912187ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 53375 - #[39m11/01/2022, 4:11:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token # in JSON at position 124#[39m#[38;5;3m +491834ms#[39m
SyntaxError: Unexpected token # in JSON at position 124
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:495:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9157544","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19121"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1336791,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AVcCojiXB5tO505Bn39d1Jq',
'x-fb-trace-id': 'ArE3QjHKUg2',
'x-fb-rev': '1006508415',
'x-fb-debug':
'BEpeA7pv+3Kx1NnHWCmCnTDwatM543kn9nLBuGfjrQ0bHVf79+2Z/pC2+1mjlmX7QsGoB/
4Mmos1jsTn5QQ4WA==',
date: 'Tue, 01 Nov 2022 17:39:38 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9157544","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19121"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9157544","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"59977"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1336934,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AAfoWTCc4a2zBGiLixNw4og',
'x-fb-trace-id': 'F3/iNaXpDjN',
'x-fb-rev': '1006508415',
'x-fb-debug':
'UGhOklrw2icQYIbbVVviOHpBzEdNxxKsgzIUfOLAgIToaWibnge0vjCM8rsXolq6h1FFLefKkWWMycYqpU
mc6w==',
date: 'Tue, 01 Nov 2022 17:39:44 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9157544","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"59977"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919026741625","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75095"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1349808,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AgYK8ud98z4Xk6LV7wSs2aw',
'x-fb-trace-id': 'BZmj5MNHel1',
'x-fb-rev': '1006509982',
'x-fb-debug':
'Jb3ACyV7nnv7LmP59PhU4bxjp3bmhBEQM8JHukm+8H+dfUQWtzobGJ3j8GgPEZlW4DIGkAMy+Qfby231MS
FZTg==',
date: 'Tue, 01 Nov 2022 18:10:38 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919026741625","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75095"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919525436998","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"82715"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1361977,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AbEEtuNKXYcvHDWcaxzSbF6',
'x-fb-trace-id': 'FHeyBp2EkNS',
'x-fb-rev': '1006509982',
'x-fb-debug':
'aheQiZXZGM5yWqfps4fOPovjkGw0KOypU9BglfrjZjBYGPFRdZkx3CozWaVNM2px2Um+YpZblnwa9KG6r5
ClUg==',
date: 'Tue, 01 Nov 2022 18:47:57 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919525436998","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"82715"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919387525873","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"16851"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1364455,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A80AAyvSx13jW4qs3UmhHAw',
'x-fb-trace-id': 'G9Z5nOKi9a6',
'x-fb-rev': '1006509982',
'x-fb-debug':
'+cH9KclV9QBV52/Y1HLILX2n1Mb2N/jxi1W7sVCo931TM1Hd38ayjBUpLXDku4u/rrDF1xIL4Qkf8H3URq
419w==',
date: 'Tue, 01 Nov 2022 19:01:48 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919387525873","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"16851"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m11/01/2022, 8:13:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +14506740ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:14:56 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +77798ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1023202ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +10772ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1784ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1530ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +712ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +239ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:19 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +4764ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:20 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +84ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/01/2022, 8:32:20 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +247ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919600","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"82975"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 201
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1406979,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 201\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 201,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AAAUisE7e0tTSbijVCgGHEK',
'x-fb-trace-id': 'BzW3Rz36ZDV',
'x-fb-rev': '1006509982',
'x-fb-debug':
'l6xLlLBhL+VOkOlS//OhT3v9Kd89Mi1embZFbpwZmdct+ZK6zIp554HOcsKuR4qnr4tbRVQWcLpC4Q4BAO
Rs8A==',
date: 'Tue, 01 Nov 2022 23:13:46 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919600","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"82975"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 201\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919760658068","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17034"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1534466,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AsGPsjAKGQrQgg7qmv4vQjn',
'x-fb-trace-id': 'Dn/AxnZBe+K',
'x-fb-rev': '1006517111',
'x-fb-debug':
'xHyEe7nTbk3ciA48yFaa3M1yWpfUuzv4qY2rRigCHjLgHWbo3+Q8jaSTMZFKctfsn0TwNtWFkPmrHeaOaZ
8M+A==',
date: 'Wed, 02 Nov 2022 04:47:57 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919760658068","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17034"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 53375 - #[39m11/02/2022, 5:25:41 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +32001609ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/02/2022, 5:57:40 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1919110ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/02/2022, 5:57:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1498ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/02/2022, 5:57:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +634ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/02/2022, 5:57:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +412ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/02/2022, 5:57:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +236ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/02/2022, 5:57:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +188ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/02/2022, 6:34:26 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+2202946ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 53375 - #[39m11/02/2022, 7:42:17 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mupdate or delete on table "tb_chapters" violates foreign key constraint
"FK_1967b145912fdfcd6818590bce8" on table "tb_lectures"#[39m#[38;5;3m
+4070803ms#[39m
QueryFailedError: update or delete on table "tb_chapters" violates foreign key
constraint "FK_1967b145912fdfcd6818590bce8" on table "tb_lectures"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917768827302","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"60352"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1645113,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AT9tjJ3IHp9HuPCidNtzYZE',
'x-fb-trace-id': 'E8L2UxCEJ4J',
'x-fb-rev': '1006520074',
'x-fb-debug':
'H5mKYiCQJCGd3XC1ZaTLNu2Pw4+5hR0WZIwIn2Sq4S0JGSwhj2L2YADaQLRTr9+4mBFTDsKH5RPlqHHsxf
zDxA==',
date: 'Wed, 02 Nov 2022 07:52:46 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917768827302","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"60352"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 53375 - #[39m11/02/2022, 7:57:06 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +888682ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 53375 - #[39m11/02/2022, 7:57:07 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1427ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918507205029","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70010"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 4881,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AfmeoIvYTaPAtttnzMvGdE1',
'x-fb-trace-id': 'F7Q02qOIkB4',
'x-fb-rev': '1006520520',
'x-fb-debug':
'l/TMkKgJULeBf/8IRX/3yP2dRg/7vdkazum4iZbUBye9ExKac18U7U76x9MwnPQit9FJwXljFg0XiwIwyL
ADlg==',
date: 'Wed, 02 Nov 2022 08:31:13 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918507205029","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70010"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918507205059","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25259"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 5438,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AwXJWBqbeYTNWIvM2Tb1tSi',
'x-fb-trace-id': 'GnCoWMGJ3eu',
'x-fb-rev': '1006520520',
'x-fb-debug':
'4Xe3yGkpc9funT1if/8gRvpWG5RObwSLBb6WQXDgCpPmUDWktAhWd8Y9DCl8Umn1ginE6U/
ew1OBQukyJnRUCQ==',
date: 'Wed, 02 Nov 2022 08:31:38 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918507205059","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25259"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 76772 - #[39m11/02/2022, 9:27:30 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCommand failed with exit code 1:
/home/ubuntu/SunoKitaab-APIs-Build/node_modules/@ffprobe-installer/linux-x64/
ffprobe -v error -select_streams a:0 -show_format -show_streams
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Edited NCERT/Class 13/Science
Stories/sci-h story andhekha rastha part 6.mp3
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Edited NCERT/Class 13/Science
Stories/sci-h story andhekha rastha part 6.mp3: Server returned 403 Forbidden
(access denied)#[39m#[38;5;3m +3634657ms#[39m
Error: Command failed with exit code 1:
/home/ubuntu/SunoKitaab-APIs-Build/node_modules/@ffprobe-installer/linux-x64/
ffprobe -v error -select_streams a:0 -show_format -show_streams
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Edited NCERT/Class 13/Science
Stories/sci-h story andhekha rastha part 6.mp3
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Edited NCERT/Class 13/Science
Stories/sci-h story andhekha rastha part 6.mp3: Server returned 403 Forbidden
(access denied)
at makeError (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-audio-
duration/node_modules/execa/lib/error.js:60:11)
at handlePromise (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-audio-
duration/node_modules/execa/index.js:118:26)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 9:28:04 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "{"useCache":false}"#[39m#[38;5;3m
+34443ms#[39m
QueryFailedError: invalid input syntax for type integer: "{"useCache":false}"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919481451989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52658"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 73206,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ANXgj5H1GoSRvS3AjTM_EDT',
'x-fb-trace-id': 'FcS5S7+0qMU',
'x-fb-rev': '1006520520',
'x-fb-debug': 'PgNurjcfv1zDcD0EZiWg4rHL9ma65LNA4IoiOA5W+vog0SEWHgQ5HpkMZz+
+H//6Q9JEToos2cc8OATEL00xZg==',
date: 'Wed, 02 Nov 2022 10:01:26 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919481451989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52658"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919481451989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12616"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 73726,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A5eMDYANeK7vPbXB359F-ZY',
'x-fb-trace-id': 'GgpePkd+2HZ',
'x-fb-rev': '1006520520',
'x-fb-debug':
'vJjVNtaQ1UN1QSGlAWG2kWt32DCFI5mz6h4gZuq89KSEvIpHxK//tfeTUIlX371RL1EoUr3reVBAgCKxe5
aVPg==',
date: 'Wed, 02 Nov 2022 10:01:59 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919481451989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12616"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919481451989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44917"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 83229,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AuJ9lLtbQ2UKTVQREUYGlQe',
'x-fb-trace-id': 'B9NCgfy+agG',
'x-fb-rev': '1006520520',
'x-fb-debug':
'X64qnwvbJ8l8iQzJI4zr+BDiw6lVJQZvyH8Hj50xq8BXMWOfH6GfcNqm5LUby9EmF8Xiq137HOdeFm/
Ujfcsog==',
date: 'Wed, 02 Nov 2022 10:10:33 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919481451989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44917"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919180405225","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79104"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 104109,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ABsobBNJoz6BahYLAbDNF0D',
'x-fb-trace-id': 'HBJiG4cmPhR',
'x-fb-rev': '1006520520',
'x-fb-debug':
'H5is4Gwvhp6K9Zw7FdG19R9fEfqP1hbZvsvQ7bJ6/NOzg70ItUMh7jo/myYKjgX9h2J8h39dJOfeLoO/
WSS5fQ==',
date: 'Wed, 02 Nov 2022 10:33:33 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919180405225","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79104"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 76772 - #[39m11/02/2022, 10:34:09 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3964774ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918824706916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71688"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 121886,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ay5umfTM-H9VYptWTsT_0jH',
'x-fb-trace-id': 'ALhsBn9ECvd',
'x-fb-rev': '1006520751',
'x-fb-debug':
'HNh9jVY+iMd2KACmqUQJouTmiQI7ZXXYt8qmmZ7QLc8C+rfJjZBE3CQ9usChCIDHg3Qp/
Tv588jeyN7LU6+eOw==',
date: 'Wed, 02 Nov 2022 10:57:48 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918824706916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71688"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918094294105","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70980"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 124505,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AkYJo7RzE4Cn6hNeEFwyoY4',
'x-fb-trace-id': 'HLeQv+31YO0',
'x-fb-rev': '1006520751',
'x-fb-debug':
'lA5vNbky4D0xf1MU9kX6iyn0zfmF35zCcHhFJvtfEoTZIyimK3bT2LHtRRYvuWk09LT3L/
LUnK5xHTDPL40d3g==',
date: 'Wed, 02 Nov 2022 11:01:10 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918094294105","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70980"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918303152136","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"22744"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 139447,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A3m1xOyoPY5Wd61-Z6Kys7C',
'x-fb-trace-id': 'DzCZKwuc/rn',
'x-fb-rev': '1006520791',
'x-fb-debug':
'PBFEDn3MHQALrLvpE+I+8Tc0QeEF8XGyTw/JXp8RDhHdq8UAd/pmQGnGOdj2GR2OLlOCGukEb5RmzZFe/
+U7hw==',
date: 'Wed, 02 Nov 2022 11:27:28 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918303152136","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"22744"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 76772 - #[39m11/02/2022, 1:54:46 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token # in JSON at position 124#[39m#[38;5;3m +12037283ms#[39m
SyntaxError: Unexpected token # in JSON at position 124
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:495:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91788","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"77234"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 200
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 241295,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 200\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 200,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ACMZ8R6-3a0ybr2NtNHrZ2Z',
'x-fb-trace-id': 'EsJy4KztyP2',
'x-fb-rev': '1006521117',
'x-fb-debug':
'9x5cM1/kAhoCmm6UK9sy/vEKmdQ2UuI/EJYJLpluOaW4RxOyH8cku2CpuEeECCqbgpGasopvVu6wUuzdtO
5elw==',
date: 'Wed, 02 Nov 2022 14:06:52 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91788","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"77234"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 200\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 76772 - #[39m11/02/2022, 2:07:40 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +773325ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 2:17:43 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +603388ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 2:35:55 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1091876ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 2:36:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +8340ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 2:37:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +74382ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 2:37:59 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +41675ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 2:38:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +12546ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 2:38:50 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +38378ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 3:34:49 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3359038ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 3:55:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1210548ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:05:19 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +618784ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:05:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2052ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:13:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +515967ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:25:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +691305ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:44:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1129217ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:44:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +3594ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:44:27 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5871ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:44:36 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +9794ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 4:44:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +11068ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 5:15:59 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1871987ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916901160791","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72255"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 375825,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AvThSTdTirNM_-dOTFtZc8s',
'x-fb-trace-id': 'B1rq8dtAj9K',
'x-fb-rev': '1006521117',
'x-fb-debug':
'+30qTdHXuO0IKaVNs/V0Ai6ZjCJ0e2e2AvJsuv1drexd2L2qX2IMaADMmqLUmLWhm6T1FkbZgoTIKYk6a0
PCDQ==',
date: 'Wed, 02 Nov 2022 17:37:49 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916901160791","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72255"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916901160791","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"32106"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 375906,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AOemqTnUCuQj9vL5aajRe4n',
'x-fb-trace-id': 'AftOg5hbewD',
'x-fb-rev': '1006521117',
'x-fb-debug':
'89X3i2ioowYYr/tgb6nBFayugT0RO/uTRfeF7tkTsvYvAqNBXgdnqeB5hCleBxXHtRpBybamAQNX6iGrxZ
m1tw==',
date: 'Wed, 02 Nov 2022 17:37:52 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916901160791","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"32106"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916901160791","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"36113"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 376232,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AhN6op7NvfpNd6_vUDQRPQ0',
'x-fb-trace-id': 'H2yyDrrwZZI',
'x-fb-rev': '1006522035',
'x-fb-debug':
'uex+8QPDFVOAvXiQHsyoCvpfTSS5he35r1Wc01KFKlHEKuzo9RNMxN1mZagXchpHOekwbIyh+KedTuW7Sd
b8kw==',
date: 'Wed, 02 Nov 2022 17:38:16 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916901160791","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"36113"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 76772 - #[39m11/02/2022, 5:47:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+1862777ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 76772 - #[39m11/02/2022, 5:49:59 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+176386ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 76772 - #[39m11/02/2022, 5:55:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +323145ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 76772 - #[39m11/02/2022, 7:49:37 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +6855495ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 7:49:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1508ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/02/2022, 11:43:27 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+14028133ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 76772 - #[39m11/02/2022, 11:54:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+660931ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 76772 - #[39m11/02/2022, 11:54:54 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+26059ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 76772 - #[39m11/03/2022, 2:04:54 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०३"#[39m#[38;5;3m
+7799942ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०३"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 2:12:27 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+453686ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 76772 - #[39m11/03/2022, 2:31:40 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1152440ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 4:42:58 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7878024ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 4:43:20 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCommand failed with exit code 1:
/home/ubuntu/SunoKitaab-APIs-Build/node_modules/@ffprobe-installer/linux-x64/
ffprobe -v error -select_streams a:0 -show_format -show_streams
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Edited RBSE Primary/Class
5/Environmental Studies RBSE/cl 5 evs-e ch 12 contaminated water spreads
diseases.mp3
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Edited RBSE Primary/Class
5/Environmental Studies RBSE/cl 5 evs-e ch 12 contaminated water spreads
diseases.mp3: Server returned 403 Forbidden (access denied)#[39m#[38;5;3m
+22522ms#[39m
Error: Command failed with exit code 1:
/home/ubuntu/SunoKitaab-APIs-Build/node_modules/@ffprobe-installer/linux-x64/
ffprobe -v error -select_streams a:0 -show_format -show_streams
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Edited RBSE Primary/Class
5/Environmental Studies RBSE/cl 5 evs-e ch 12 contaminated water spreads
diseases.mp3
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Edited RBSE Primary/Class
5/Environmental Studies RBSE/cl 5 evs-e ch 12 contaminated water spreads
diseases.mp3: Server returned 403 Forbidden (access denied)
at makeError (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-audio-
duration/node_modules/execa/lib/error.js:60:11)
at handlePromise (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-audio-
duration/node_modules/execa/index.js:118:26)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 4:44:05 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "{"useCache":false}"#[39m#[38;5;3m
+44493ms#[39m
QueryFailedError: invalid input syntax for type integer: "{"useCache":false}"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 4:54:20 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +615491ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 76772 - #[39m11/03/2022, 5:31:36 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCommand failed with exit code 1:
/home/ubuntu/SunoKitaab-APIs-Build/node_modules/@ffprobe-installer/linux-x64/
ffprobe -v error -select_streams a:0 -show_format -show_streams
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Read Aloud/Class 8/Social &
Political Life/cl 8 civ-e ch 08 confronting marginalisation.mp3
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Read Aloud/Class 8/Social &
Political Life/cl 8 civ-e ch 08 confronting marginalisation.mp3: Server returned
403 Forbidden (access denied)#[39m#[38;5;3m +2235342ms#[39m
Error: Command failed with exit code 1:
/home/ubuntu/SunoKitaab-APIs-Build/node_modules/@ffprobe-installer/linux-x64/
ffprobe -v error -select_streams a:0 -show_format -show_streams
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Read Aloud/Class 8/Social &
Political Life/cl 8 civ-e ch 08 confronting marginalisation.mp3
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Read Aloud/Class 8/Social &
Political Life/cl 8 civ-e ch 08 confronting marginalisation.mp3: Server returned
403 Forbidden (access denied)
at makeError (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-audio-
duration/node_modules/execa/lib/error.js:60:11)
at handlePromise (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-audio-
duration/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919327568755","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28055"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 738777,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'APN4nfm19AzVC_xDx0MiUfd',
'x-fb-trace-id': 'Hx4y1SE2crM',
'x-fb-rev': '1006530861',
'x-fb-debug':
'F3boheOpw9UzQdMUV3ZcVXu8HX//AcTXmpo/SNyWzTGOFcHuxB6J2+EpbHA8fmibN3PsvqhcDN/
GoBX5rP3lYA==',
date: 'Thu, 03 Nov 2022 05:44:52 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919327568755","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28055"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 76772 - #[39m11/03/2022, 5:46:59 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+923537ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 76772 - #[39m11/03/2022, 5:55:32 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+512989ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 76772 - #[39m11/03/2022, 6:13:48 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1095924ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 6:13:51 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2812ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 6:13:52 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +960ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 6:13:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +667ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 6:13:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +354ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 6:13:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +102ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 6:52:40 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2326765ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 76772 - #[39m11/03/2022, 6:58:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+362120ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:872:48)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 91948 - #[39m11/03/2022, 7:53:05 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2183753ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/03/2022, 7:53:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +13233ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/03/2022, 8:08:05 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +887153ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/03/2022, 9:17:08 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "length" violates not-null constraint#[39m#[38;5;3m
+4142219ms#[39m
QueryFailedError: null value in column "length" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84314"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 125620,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AiiW0Pu2hwmyYCTabCKnSjF',
'x-fb-trace-id': 'H2IR+r/Q4E9',
'x-fb-rev': '1006532678',
'x-fb-debug':
'9xq9FotSXDvY09RqqRRyxO+Z02aEaJ9QyISkRyUsyZONZZwCeKWX9dh/D39EM2Kp8/
y6w+RfnhF6AT5h596lqA==',
date: 'Thu, 03 Nov 2022 09:54:48 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84314"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"73874"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 126111,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A-tuGRYw1gZ2UjpNiG7GwCA',
'x-fb-trace-id': 'FJwa2SSCba8',
'x-fb-rev': '1006532678',
'x-fb-debug':
'Rf4dEd5WjXWA/b6Czec9F0az3JyGVBVbKtXxHxEhge0JOCODebiKw+d9PalT3zX4+b94+3Y/
eNqoRBOJo3jvMQ==',
date: 'Thu, 03 Nov 2022 09:55:20 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"73874"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"37004"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 126831,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ARbpkBQ1ZBpQd5Z_85_OPU4',
'x-fb-trace-id': 'CLtPEUNrpi/',
'x-fb-rev': '1006532678',
'x-fb-debug':
'PWtRY+41bMwYmac0C89v4N32sriU6eIMnWQlQdDVZtlT2IhbtyNTpUQCNsziWqOfoCBVWqVczhmwTrmLoK
JDGA==',
date: 'Thu, 03 Nov 2022 09:56:09 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"37004"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70700"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 128156,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'APFvN091uXwmjvbCw39TMbu',
'x-fb-trace-id': 'DCMwKzuzMUx',
'x-fb-rev': '1006532678',
'x-fb-debug':
'Q8XEKUVffZHMWkEMrPMHILqokfrArt56SzGQ1CaUyVh+tfOD9B7jr2wfEr27kOwL3i7Eq9UyJ52+fb67iD
Y+Dw==',
date: 'Thu, 03 Nov 2022 09:57:20 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70700"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62921"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 128623,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'At8q4tHTHb28HLNhOd635KM',
'x-fb-trace-id': 'F6XwSr9Y3mA',
'x-fb-rev': '1006532678',
'x-fb-debug':
'Jm0PSMCLCxxtsMgyxAjh0QGQJ165O4WhlaNaLRlb7Ses8BZttEYvjPNpYA50oPPK7Yz9xmSyW7ne+5Oe1d
0OwQ==',
date: 'Thu, 03 Nov 2022 09:57:39 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919517559736","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62921"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/03/2022, 10:38:25 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4877900ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/03/2022, 10:55:29 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+1023387ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919653603403","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"33118"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 212225,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A2bUHX82h9bST0c_frlWb_a',
'x-fb-trace-id': 'GLHfd//fWSa',
'x-fb-rev': '1006532990',
'x-fb-debug': '557L5U5a+
+7B1x6ct8FQ+ep806TRm5KZ+QUN+lRR0MO9y0CLrMLeK1E0nCMMj3lmc3YBzSVcaAmNWv152htvFA==',
date: 'Thu, 03 Nov 2022 11:38:53 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919653603403","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"33118"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919571286381","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"58750"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 224709,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AIzoTsLKeuipK5BnY6MQAPX',
'x-fb-trace-id': 'DyffXA+Gc+l',
'x-fb-rev': '1006532990',
'x-fb-debug':
'YHbw/9r+Mub5X3OUL2tnIJhbrTPmGbt1BK8UsSCxZJQxojlYiUws3J9jjjq23GtwuQi4lK7DzCLIVzC2ye
NeDQ==',
date: 'Thu, 03 Nov 2022 12:04:41 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919571286381","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"58750"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/03/2022, 12:23:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5278933ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916263898739","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54983"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 305238,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AFAu94hBx0HdhrZT3FRYlFi',
'x-fb-trace-id': 'CR5H9vTnzVc',
'x-fb-rev': '1006533239',
'x-fb-debug':
'DV1kYOz+v5TKEEB8wn19+TAPqN/1tMiDnYOCvTsV1yY4kl50lOCybPm0IeOJPc0GzxiDrN9SBJSshndEMQ
9TSQ==',
date: 'Thu, 03 Nov 2022 14:14:54 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916263898739","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54983"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/03/2022, 3:10:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +9997884ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918680417879","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91251"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 357688,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AiiRsZUjit28ahKz91ZibRY',
'x-fb-trace-id': 'HyAWQz6MBD9',
'x-fb-rev': '1006533239',
'x-fb-debug':
'bqSOEa7KSgttKakTNfnxkouRJcIwJzgtCWqtkyvQZrcGDTK/51NSwgLC6UL9c9Kge1g2YjW4nAwpzQ0EeA
WNnw==',
date: 'Thu, 03 Nov 2022 15:44:25 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918680417879","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91251"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918680417879","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"86059"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 358787,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AOlEw5PLBvqpP1qIs_8uPjH',
'x-fb-trace-id': 'HKsuT7SDijk',
'x-fb-rev': '1006533239',
'x-fb-debug':
'II1UF4djBz3qQ278Tjnu28kqqeJ+qbAVodFt38+OcNuaS19UUizSeU3wjh5k2pgF0mqOmw47p00xWSNAhI
nLnA==',
date: 'Thu, 03 Nov 2022 15:46:12 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918680417879","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"86059"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/03/2022, 3:59:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +2950335ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/03/2022, 4:49:41 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "10 class"#[39m#[38;5;3m
+3025407ms#[39m
QueryFailedError: invalid input syntax for type integer: "10 class"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919751183076","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85646"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 509926,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aq38H5W_GdvKpHefH4EE7wQ',
'x-fb-trace-id': 'APNQxak9aEv',
'x-fb-rev': '1006536471',
'x-fb-debug':
'i4DjB0m1n9FzlUNh+kiJn+2ceLBnoTQ+RprFxDQjWIb+XYv4LPJMREYfXa30zst1AQ5F37RxnoS25yAcUX
Uvlg==',
date: 'Thu, 03 Nov 2022 20:16:22 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919751183076","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85646"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/04/2022, 2:09:07 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +33565229ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/04/2022, 2:09:34 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +27494ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/04/2022, 2:38:12 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1717502ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/04/2022, 2:57:20 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+1148334ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916390359618","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"53916"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 683511,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AnZB8yOBzIf2a4Z-2dWc3gi',
'x-fb-trace-id': 'DiLmXZJ6NSq',
'x-fb-rev': '1006542392',
'x-fb-debug':
'K/zZx7lIBtpUrzs+LulQVpHoJXQmZDkyFDrfFH8W8lNM9Pt3vLjowOvSHYu2m3ryrwyGnuMY3nBbMzoGG7
Xmqg==',
date: 'Fri, 04 Nov 2022 04:50:03 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916390359618","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"53916"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919429304366","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71118"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1003156,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Amkl9O4jPNrF4g3G_6lBf_K',
'x-fb-trace-id': 'DHCU9ssGASA',
'x-fb-rev': '1006542795',
'x-fb-debug':
'0nTAF5CyznPfnHJ+475QRNEechRZzOzd/Rhlwf616uWOUJNkGbMlhSPcUcgqAqAz37cU/
IKWdVLZ3KXGTulNkA==',
date: 'Fri, 04 Nov 2022 06:26:54 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919429304366","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71118"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/04/2022, 6:27:01 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +12581025ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/04/2022, 6:58:34 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minsert or update on table "tb_read_aloud" violates foreign key constraint
"FK_cbff3a1f85fc863a8e10c3ec946"#[39m#[38;5;3m +1893405ms#[39m
QueryFailedError: insert or update on table "tb_read_aloud" violates foreign key
constraint "FK_cbff3a1f85fc863a8e10c3ec946"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/04/2022, 7:56:59 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +3504250ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91567"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1083271,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AqktXPxNjADvH_Ekvx4LV9v',
'x-fb-trace-id': 'FNzl1i8mmtz',
'x-fb-rev': '1006543140',
'x-fb-debug':
'TEeXMIh4D/++oUIZousDgyrZIBw0sK06amOAMBNEyeRP59fUSaub/TGgd2IhzHTSMINmqDiUWppBau9nXK
Ojcw==',
date: 'Fri, 04 Nov 2022 08:25:22 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91567"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/04/2022, 8:50:17 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+3198206ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918080696649","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"83790"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1096971,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AfkYjDARsk8_0pe25OFgamX',
'x-fb-trace-id': 'BePah+iaMJf',
'x-fb-rev': '1006543140',
'x-fb-debug':
'WoyCsnT1lDpm6nNUebnTYcqbF77CamLpZNOoho3F1lDgdNKLRBEVprd0m+cT1Q4eoGE1ZhgV+Np6kKOtVR
KPIw==',
date: 'Fri, 04 Nov 2022 08:51:22 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918080696649","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"83790"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/04/2022, 8:55:40 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+322690ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/04/2022, 8:56:37 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+57425ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31869"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1101689,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AjGOhvqbmZE5p_E8aJozN54',
'x-fb-trace-id': 'C5j1u1PlIRV',
'x-fb-rev': '1006543303',
'x-fb-debug':
'8q+ZOrxBqAPeyyQtk+9Xrefmt5WqfG3ccrDIC7uJq03X+bpTIDjg/R5pdE5tDey75bofysytUjUpML18Sj
J0Ig==',
date: 'Fri, 04 Nov 2022 09:02:28 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31869"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62850"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1101786,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AV5BAzb-aQHXbt5_0fSo6wi',
'x-fb-trace-id': 'CC8iTaX85gJ',
'x-fb-rev': '1006543303',
'x-fb-debug':
'ivfPjZ5ACgJROhMpUuz+v4PXMANofu72daoIrn/1Uym8C2qlIEX/8HmGuI7Epbn3MjrX7KiI6bhRtCWTKW
kNVQ==',
date: 'Fri, 04 Nov 2022 09:02:35 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62850"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19739"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1101985,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AXXwEkTJMPymkqmyrTXVi25',
'x-fb-trace-id': 'EjKqgk/eAv7',
'x-fb-rev': '1006543303',
'x-fb-debug':
'3OqfEO5ibOx/y8oA5D7ZUTq5IwmXrGnHcICGUfz4p/VapQT09gnGZ9Ry//DzTVi1rNM5Kqj9qhxmLpFwlF
n+VA==',
date: 'Fri, 04 Nov 2022 09:02:55 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19739"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52085"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1102101,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AJ-wdAgQ4QuAeFjZCeESU0R',
'x-fb-trace-id': 'CjyNKmWgL1/',
'x-fb-rev': '1006543140',
'x-fb-debug':
'210y+D11DeoviQulvqNT63M5+0sOfZXyVO+RzFTSLjjg5sMfRAXEfoKN/sn3LIkTMz4WC6/
Jd2S8r5HCHprPZA==',
date: 'Fri, 04 Nov 2022 09:03:02 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52085"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/04/2022, 9:03:08 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+390919ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"38239"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1102269,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AcDtxv_as5XviKODPFvPH56',
'x-fb-trace-id': 'HloI9uJgv4q',
'x-fb-rev': '1006543140',
'x-fb-debug':
'5YcnCJ96WxI4CmHdTNdgKkS8V4kLv/pnrFbFhb7uQtJsA3FRoaPM3HNhx2dfOkn7qzWCiSZtfllZZzXGiX
bQvQ==',
date: 'Fri, 04 Nov 2022 09:03:09 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919173553565","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"38239"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/04/2022, 9:04:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+74515ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 91948 - #[39m11/04/2022, 9:28:39 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+1456849ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919423224444","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"69168"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1112920,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AGbDRsLU_ZDSA261C_QICqO',
'x-fb-trace-id': 'DrXIi9Bn0xM',
'x-fb-rev': '1006543303',
'x-fb-debug':
'EZ5y4dluUNqyl5ZPAfUJvVT1lNSTt+KplUFJE81/rAemOKKIO4OS5jjM5+SG7ufxtfWbEf/
bpfOLklwNLcU8bQ==',
date: 'Fri, 04 Nov 2022 09:33:51 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919423224444","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"69168"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919588901956","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39859"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1174230,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AulHCd4h-sFsaw7M7J3ipP7',
'x-fb-trace-id': 'DBYk32bAF4x',
'x-fb-rev': '1006543303',
'x-fb-debug':
'yevvJIEYfC13u9r2yphv1AsQqoyF8Ezkjm4WTNw99UgmLUbIztke+yL4B2pKUL+rtAe10CpL+e6xmH8TrF
/T+A==',
date: 'Fri, 04 Nov 2022 11:45:08 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919588901956","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39859"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919588901956","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65410"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1174663,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AD2t_AqfvdodhDxtQLpJTf8',
'x-fb-trace-id': 'DKgB6geHWAR',
'x-fb-rev': '1006543303',
'x-fb-debug':
'cf+wjHhOh+vHIedTMeJ+B89WeYlfHCSE2WU5BeLPHmDldRCn0fgHA1NigEYHaEi1D6/
MNMcndcKTnufLiXjjuA==',
date: 'Fri, 04 Nov 2022 11:45:46 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919588901956","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65410"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 91948 - #[39m11/04/2022, 12:05:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +9392456ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"58471"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1204996,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AAJXzW8qL0aPAy27jhKkqVY',
'x-fb-trace-id': 'EIZ9vxCwS1A',
'x-fb-rev': '1006543303',
'x-fb-debug':
'BtGZkYm5tbIlHZ4iW7lJSUTmKSc4CPqGOwuozwapPx+hwkOQEO62zhY7W2UYZSWpcmmHVTnqbnlGayjW29
yZfg==',
date: 'Fri, 04 Nov 2022 12:28:55 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"58471"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 103470 - #[39m11/04/2022, 12:32:59 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31msyntax error at or near ","#[39m#[38;5;3m +50908ms#[39m
QueryFailedError: syntax error at or near ","
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:33:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +2510ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:33:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6634ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:33:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31msyntax error at or near ","#[39m#[38;5;3m +9281ms#[39m
QueryFailedError: syntax error at or near ","
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:33:19 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1452ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:33:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +2163ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:34:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +38379ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"35801"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 3734,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ar7M-aBNwAvpwBUiq52Xp4C',
'x-fb-trace-id': 'FXSOxkaJ7iG',
'x-fb-rev': '1006543303',
'x-fb-debug':
'lVYF+MyRRiH8iX1M419JVnKR11OR10q3M9BB7+41ItpaVoonKQejHllvw9T4hh7Odbor4UFTroheo4LVN/
FWzQ==',
date: 'Fri, 04 Nov 2022 12:34:50 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"35801"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 103470 - #[39m11/04/2022, 12:39:33 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mmissing FROM-clause entry for table "temp_user"#[39m#[38;5;3m
+332924ms#[39m
QueryFailedError: missing FROM-clause entry for table "temp_user"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:39:36 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31msyntax error at or near ","#[39m#[38;5;3m +3200ms#[39m
QueryFailedError: syntax error at or near ","
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:39:38 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +2337ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85897"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 8373,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AV0XHg4gn1UmVhlBywuA9K2',
'x-fb-trace-id': 'Bzk0RBf3j5z',
'x-fb-rev': '1006543583',
'x-fb-debug':
'x3Rs7UMJHoZ2azY8IC5sO2tCGBSQKmLyzUHiZ3CnBRPSV7TSXUGHPXN8DWKhctyNIPiGowNbg+1g3C+FLU
Omsw==',
date: 'Fri, 04 Nov 2022 12:41:01 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85897"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 103470 - #[39m11/04/2022, 12:49:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +606973ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:57:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31msyntax error at or near ","#[39m#[38;5;3m +447929ms#[39m
QueryFailedError: syntax error at or near ","
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 103470 - #[39m11/04/2022, 12:57:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3845ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919982907214","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65612"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 34216,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ANajjaMM1Sy_aZJfGI0SjaD',
'x-fb-trace-id': 'EbwCNAJ17FR',
'x-fb-rev': '1006543583',
'x-fb-debug':
'5Rjk2amJZ8JaDJerqQXIRpHLJrwWEvuw7yr9BgmZ6VmkTP4UwhECrr2bIaZs6o/tY0eCDknpNXpXbN7Rty
PCog==',
date: 'Fri, 04 Nov 2022 13:54:48 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919982907214","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65612"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 105815 - #[39m11/04/2022, 3:10:42 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +7611395ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 3:54:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०४"#[39m#[38;5;3m
+2654746ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०४"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919557231144","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15778"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 112160,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ae9yBrNFKPVB2O7tkLoqHb-',
'x-fb-trace-id': 'FLY4UuJq805',
'x-fb-rev': '1006543583',
'x-fb-debug':
'gXf8wGUe3FKTg1BbNMchBFVHREFn/LSfv3bgEdJ7tSAU9AoVwaMiZYZ+f8k2QUxW+OEpgqW13UzbwQH3SM
kKaQ==',
date: 'Fri, 04 Nov 2022 15:56:38 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919557231144","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15778"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 105815 - #[39m11/04/2022, 3:57:35 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +158483ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918108827570","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80739"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 143100,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AOuKIgrcr5SkvJUxBaJarCG',
'x-fb-trace-id': 'DEIwyai7JfK',
'x-fb-rev': '1006543976',
'x-fb-debug':
'z/37L0uFI7ljzbXCgJ4rcJaIKWxngkHhV3NGPzIBEWXquxecOw8sI9WGyQGZgWSIMzQ/
j+CUz50pLeaIx+boXw==',
date: 'Fri, 04 Nov 2022 16:46:22 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918108827570","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80739"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 105815 - #[39m11/04/2022, 4:46:31 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+2935624ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +757268ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +848ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +543ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +256ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6230ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +303ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +611ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4931ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +273ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +337ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 4:59:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +34863ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 5:00:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +12686ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 105815 - #[39m11/04/2022, 5:00:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3087ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918205284799","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"55850"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 121198,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A2XU0rLN6p06wDcmJ25-LcP',
'x-fb-trace-id': 'BrdPQfJ66E/',
'x-fb-rev': '1006549377',
'x-fb-debug':
'nNlGq3mTk0vY4zhRjNo7sio1Mp9uLjGQMwNbBrokrMI02EquzPVw6FEZnEHAhSiAzst/
KefmK8bFDpTy0x056Q==',
date: 'Sat, 05 Nov 2022 02:13:54 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918205284799","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"55850"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918205284799","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"38659"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 121889,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AHWg7cVNPskdgrD5VS4B91n',
'x-fb-trace-id': 'G21Z/oh1ySj',
'x-fb-rev': '1006549377',
'x-fb-debug':
'G63McxarKtVVQAS8AAt06+bSMuJV5o8InY5uxsA9s6Z5iw/jwmewtDfevj6i37UH0yCU7DvM9qTpp0tKdB
HuGA==',
date: 'Sat, 05 Nov 2022 02:15:02 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918205284799","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"38659"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9197981125","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"86346"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 205
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 122664,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 205,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AUHKb_P6AHyE2MDJbp2al57',
'x-fb-trace-id': 'HQQl3+duX9R',
'x-fb-rev': '1006549377',
'x-fb-debug':
'Rf9PLRdbB1CCUsZlk+6KDgHkL/l9Ob1wICgbM2IEpHXsYn2EkEKJNy3hP1pQNKrETYxwWCL2Qkh2QWUMfH
d8fw==',
date: 'Sat, 05 Nov 2022 02:16:29 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9197981125","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"86346"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 108231 - #[39m11/05/2022, 3:22:27 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +33369500ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9120","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90398"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 199
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 180320,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 199,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A__CbUR-K5BQEy1XA9zr_k3',
'x-fb-trace-id': 'FA9bx5lsmGq',
'x-fb-rev': '1006551423',
'x-fb-debug':
'HS7H2ZhgkLfJEUZJ6JPLqdsbSozZzTMb9L+O2W1PuxkTaRG1vOOcdRYfAJbVgcVPXl4KXb19/
jwJBw6lx9zGyQ==',
date: 'Sat, 05 Nov 2022 04:07:14 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9120","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90398"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9120","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57095"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 199
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 180629,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 199,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AsqlCNTILaIsn__ToSk934L',
'x-fb-trace-id': 'HKXXkH2Z9XW',
'x-fb-rev': '1006551423',
'x-fb-debug':
'fniJH+xjiAar56No313mRlxdFUMKnQowkeUJDqxzvCrxNGjeYvyl6FXu4RSdOvgS+Qy5VXKPHaH7lTca+L
+ygQ==',
date: 'Sat, 05 Nov 2022 04:07:19 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9120","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57095"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918080488428","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94863"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 183719,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ATCHF7UT3kbOXoXAWFEP8zm',
'x-fb-trace-id': 'Bp/iC360xyG',
'x-fb-rev': '1006551423',
'x-fb-debug':
'wqpHa5jte6HJu1SwderwCNXXP4tsAw89gDhiGQgTVNJOU4A3clSv83VTgMz10S60jVEjJNhHfqTQUCiL1U
q48g==',
date: 'Sat, 05 Nov 2022 04:11:07 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918080488428","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94863"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 108231 - #[39m11/05/2022, 5:01:04 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०५"#[39m#[38;5;3m
+5916614ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०५"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 108231 - #[39m11/05/2022, 5:05:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०५"#[39m#[38;5;3m
+257905ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०५"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
SecurityError: Step 3 invalid new nonce hash
at Object.doAuthentication
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
Authenticator.js:185:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at MTProtoSender._tryGenAuthKey
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:830:25)
at MTProtoSender._connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:233:27)
at MTProtoSender.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:147:13)
at TelegramClient.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1064:15)
at TelegramClient._switchDC
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1090:16)
at Object.invoke
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/users.js:63:17)
at Object.signInBot
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:344:23)
at _authFlow
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:356:11)
at Object.start
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:41:5)
at /home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:186:9
#[31m[Nest] 113898 - #[39m11/05/2022, 6:48:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "url" violates not-null constraint#[39m#[38;5;3m
+2315613ms#[39m
QueryFailedError: null value in column "url" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917985513855","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"97984"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 51253,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AMl8fEnbG2e-0QqXSzKNdLa',
'x-fb-trace-id': 'DDtVNSAdaKe',
'x-fb-rev': '1006552266',
'x-fb-debug':
'mxJMfSP4aGCRc8Tti8OMBJ056MaZOgEV11sMMevXPgQxrZ0ZkU+8SRRlNfvom2YXigPWLEA+hP+7A/
L+HKPTHw==',
date: 'Sat, 05 Nov 2022 07:05:15 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917985513855","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"97984"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917985513826","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"13689"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 52219,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AhGdcZpEld1fGbxss_DsQlV',
'x-fb-trace-id': 'AXUuUXE3S3y',
'x-fb-rev': '1006552266',
'x-fb-debug':
'bhj83/tAmRfkQZQbYJ6hjUJyFYCZv6sbXqFSD7hQaoldizbtjTVjcGMpIDpdFQ5XHBGbD6msQla3GkL/
huOZdA==',
date: 'Sat, 05 Nov 2022 07:06:46 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917985513826","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"13689"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/05/2022, 7:11:29 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1409799ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 113898 - #[39m11/05/2022, 7:14:02 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +152733ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"87549"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 70529,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ac8Xi_5iAgc0vIfOZUG79hZ',
'x-fb-trace-id': 'Cl3ipW1XIfb',
'x-fb-rev': '1006553456',
'x-fb-debug':
'DWaxgZNiUoZVP0gICDd5N5s7QjWsSt5qZcpwrGVOzqsKovTKpse2drohZtFxV3Z6PVQjt0QIodbJ5xxE3y
69Fg==',
date: 'Sat, 05 Nov 2022 07:32:45 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"87549"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919060914501","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"73749"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 75129,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Au3QBNt1AnMVdBHIFXSOUg8',
'x-fb-trace-id': 'HrXv2aVf2Xb',
'x-fb-rev': '1006553456',
'x-fb-debug':
'IHRQJdWx4cgpZNT4aDiepfbUnADnPJWQBrT8AqN1C+GwR/AHCiXujNWa82EpYg34j0i4uN5G5drLzlvxLX
Ydzg==',
date: 'Sat, 05 Nov 2022 07:43:13 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919060914501","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"73749"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71080"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 86997,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A5RVB2JAHd8nPkMLFF3HJ8o',
'x-fb-trace-id': 'HwFHLH5l4oa',
'x-fb-rev': '1006553456',
'x-fb-debug':
'1sCSCeksr0h/9XXX9byjrHY6t1D7d5wHPguToIscCXinwldlPhFEA9vYOnLR82IEiJNgDZ3rwp1EaGo8uE
x1Ug==',
date: 'Sat, 05 Nov 2022 08:02:13 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71080"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/05/2022, 8:03:02 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+2939824ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17673"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 89826,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ATUM7z731zVPsAwmzT_xLTX',
'x-fb-trace-id': 'HOqI/DJTo/q',
'x-fb-rev': '1006553456',
'x-fb-debug':
'CcVOXkHdPYJkMz2aee7mYLISAIQl3B3LUYGeKsaOXIpXdHAlo8xxLEThvpK8NoAMWipp3uE1PsqdGHz6NI
vRpA==',
date: 'Sat, 05 Nov 2022 08:05:57 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17673"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31903"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 91782,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AoLJpbtmOw28uiQ9ZTlu7OA',
'x-fb-trace-id': 'HbJph5u1T2i',
'x-fb-rev': '1006553456',
'x-fb-debug':
'3W+I8YIZ735QGRxW+jLZ0AOVoT+pjFi/uEWL+MIJ41K/bbmkiD9vDB6x/PTFQVP2wlAoFt9ptG26+XVh4P
CHWg==',
date: 'Sat, 05 Nov 2022 08:08:24 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31903"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/05/2022, 8:26:23 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1401048ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 113898 - #[39m11/05/2022, 8:43:03 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1000244ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 113898 - #[39m11/05/2022, 8:43:06 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2347ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 113898 - #[39m11/05/2022, 8:43:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7447ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 113898 - #[39m11/05/2022, 8:43:23 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +10488ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 113898 - #[39m11/05/2022, 8:45:03 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +99900ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919509411608","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"78989"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 159552,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AIITkHFtChclewugm_Rxp-Q',
'x-fb-trace-id': 'Cj7eKjRGrAU',
'x-fb-rev': '1006553678',
'x-fb-debug':
'MzQ6c6MHcIY7R99DBVOkJTYlps0AHQcPzuxczU5LVb8pSm1c9/id30M5Jo+Hq4DoSQoKqeCiBkZSoqi+dm
r0cg==',
date: 'Sat, 05 Nov 2022 10:20:52 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919509411608","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"78989"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919509411608","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50055"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 159923,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aj7yI9FY1ObxEc_ky_6D9zb',
'x-fb-trace-id': 'FSubwhOZmWB',
'x-fb-rev': '1006553678',
'x-fb-debug':
'zA7OASrO+ue1H5cQ8uuv00jvXr9v8KwF+Vgkzl08cijttHjjquE97UrVjEDABdS8VnfkwGRwe8kT0yRVS8
KrhA==',
date: 'Sat, 05 Nov 2022 10:21:26 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919509411608","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50055"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9195094116083","type":"template","template"
:{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21278"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 208
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 160452,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 208\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 208,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AaKFkL_5wYdygS0AwWY8Q46',
'x-fb-trace-id': 'FmeNFWgbd4B',
'x-fb-rev': '1006553678',
'x-fb-debug':
'avKdgksVaDXc2iQg7qURMiDVuxnvW5NK3/8L6JtoS+/x69UDLX+og3g65FstoUqGv6jvripsjyu8k6Rgx3
eH1g==',
date: 'Sat, 05 Nov 2022 10:22:20 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9195094116083","type":"template","template"
:{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21278"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 208\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/05/2022, 11:16:49 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +9105532ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91949361475","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"36443"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 235200,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AIzO_YwIkfvWK5FTlx0E90T',
'x-fb-trace-id': 'AZmp7v9MIO0',
'x-fb-rev': '1006553814',
'x-fb-debug':
'axSk6aV9vkul8MUyGfKRZvrBWyTXDlheTshVPtv/g4U32NGAyRjm1yH/rZ2mNn6yPiKwqR3W51gSnpGGKA
wB2A==',
date: 'Sat, 05 Nov 2022 12:31:15 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91949361475","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"36443"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919014265929","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"83609"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 235529,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ATyyeQvXSHuy2MAuBcy8Lhe',
'x-fb-trace-id': 'BbPzwZML9Aq',
'x-fb-rev': '1006553814',
'x-fb-debug':
'XjNtoGgg7meMfuWxbrFZSd4P9S6hseqBKjk5AnSAsYGcQolMKmdPDQd2MJ1PrSZh9Z97NGLCuBEj8Igg+1
Wf8A==',
date: 'Sat, 05 Nov 2022 12:31:33 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919014265929","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"83609"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919014265929","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79217"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 240633,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AS1Y_e35jDELz2qksNWI1nR',
'x-fb-trace-id': 'FGzf8bNEU7K',
'x-fb-rev': '1006553814',
'x-fb-debug':
'MZEOpnuvQLIYsYwrZO7dclSw/QXHOXeMLbLzLyZWBppxuphhH74YnjmsnZ6JbJsnn+whQYoGbmpZ+j/
hI1aRqA==',
date: 'Sat, 05 Nov 2022 12:38:47 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919014265929","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79217"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49391"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 267354,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AazYyjsHbycYtCWKYVTEwzP',
'x-fb-trace-id': 'CUv31Sl8res',
'x-fb-rev': '1006553851',
'x-fb-debug':
'+roex5wWHSSEIPpD5vuZBVgdBiTRTdzKWTGE8TYIVRt7Wzj3EunnWqaFfQS/OGS8IUdALs4Q0EB6UPCo7X
Tdyg==',
date: 'Sat, 05 Nov 2022 13:24:34 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49391"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917806094950","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"34429"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 274179,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AIlqEWVHsq9U1lRAcoUxCQz',
'x-fb-trace-id': 'HevJfUPd+6D',
'x-fb-rev': '1006553851',
'x-fb-debug':
'zVihSPkahIScE8i/qB9vS6m8YJnOLuG7y0Sp0JOPb2GpE6VIi4PRMMkvVMlzoPZPvIwzWfkB15sFAogSpL
bgEA==',
date: 'Sat, 05 Nov 2022 13:33:24 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917806094950","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"34429"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/05/2022, 1:33:54 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +8224639ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918168007119","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"68272"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 296834,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AKvIi8KKyu2-SZ7H7p8pq2B',
'x-fb-trace-id': 'C6lyudMTJAP',
'x-fb-rev': '1006553851',
'x-fb-debug':
'd3QhisrxXp0Ct2/1H5K8KNQQvcawlRvb2YPjLjXHNhzycMbZYNAmjrsNQzlqQnUlaTkqOVNJvPXfipD6iu
3nyg==',
date: 'Sat, 05 Nov 2022 14:08:54 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918168007119","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"68272"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918743934989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"48986"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 325686,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AXWC8VQx7OG8El1n89CW_uI',
'x-fb-trace-id': 'FCO5YxQ4J7Y',
'x-fb-rev': '1006553851',
'x-fb-debug':
'HiqwGoomi0Kaqe9jppKNsCpHhBR8OXk7ZBi3OBijo791oYIr90ldg7hdJfpQYsEL7Ti7NeUn5nOF3TRNDe
pXpg==',
date: 'Sat, 05 Nov 2022 15:01:38 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918743934989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"48986"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/05/2022, 3:08:41 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5687114ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919508509065","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"77793"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 331749,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A7AABHOTWIzdMW21pc16yvw',
'x-fb-trace-id': 'D6qwDcqLHZ1',
'x-fb-rev': '1006553851',
'x-fb-debug':
'Tg+ysJ2GE9iM4lrWYO2l35fHxfWHpMlAg4ViNZODL9ZvUm+cLw3vN1UnoHSswkZoZBYA2d/
XEvxpnz9viU1ipg==',
date: 'Sat, 05 Nov 2022 15:13:19 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919508509065","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"77793"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/05/2022, 3:16:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०५"#[39m#[38;5;3m
+478126ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०५"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919631840019","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81502"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 339800,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A1p9lJH4obRvf0Ia9PvmTCF',
'x-fb-trace-id': 'DW/GkSdxGxq',
'x-fb-rev': '1006553851',
'x-fb-debug':
'bRkkTUOnq+g1+qigHx65KQTPuj1LuAgE6lbqVac1VPeVwA2XOA5lDo3Zx57J/fOrtLKES7DqrP7QRiR8EW
LZbg==',
date: 'Sat, 05 Nov 2022 15:27:40 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919631840019","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81502"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918328720982","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39337"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 369683,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A3XqZHudKvAcLUjentZbbt0',
'x-fb-trace-id': 'C0c0XcenQdg',
'x-fb-rev': '1006553851',
'x-fb-debug':
'/uVjPT3ttz6cGKrIueZ9ix2MdpFUQnK6ZsK4OXxIAqP+1fRQNFSOLtxGzXtR67d8toGHaVmUI6TVwD0aeO
ygZA==',
date: 'Sat, 05 Nov 2022 16:11:30 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918328720982","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39337"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918048580799","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15561"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 371064,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AxT68-tdUfUmQraaASYxMOl',
'x-fb-trace-id': 'FYkv5wiajTQ',
'x-fb-rev': '1006553851',
'x-fb-debug': 'koBovK/T7WZzXN/hgBViwhYDQqWydr6sKuzjZl/v+
+M6fpHoqdmSjjHlLpJVEkeTNRqTCs1Ka3UaHuQwHdytCQ==',
date: 'Sat, 05 Nov 2022 16:13:06 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918048580799","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15561"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919876443201","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"16754"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 372215,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A475ajxk70b12WlDCZ5Sw5P',
'x-fb-trace-id': 'CWSkYZCxC4p',
'x-fb-rev': '1006553851',
'x-fb-debug':
'vUMKBf5rpLvCFBbTd7GT3gkv8ZPW9TVA2eTFgwCTkfJ4fT2E1hSc7Sof/97iKnmEqnz0JvornRbwFrYfwN
z8yQ==',
date: 'Sat, 05 Nov 2022 16:15:01 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919876443201","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"16754"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/05/2022, 6:09:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +10348642ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918824698891","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"18887"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 456170,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AaTDvZDoZnl7fvw2hU73FEG',
'x-fb-trace-id': 'AKRC8/oTAO+',
'x-fb-rev': '1006554022',
'x-fb-debug':
'L8hiJurn9Z7xUGGNYUlSvoKHoAPEgp7K3CUDygBngOoFQMItcVpUGYEIHeY4KuEKB++cY39QEQCn/
vhtoq8wyA==',
date: 'Sat, 05 Nov 2022 20:47:07 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918824698891","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"18887"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 113898 - #[39m11/06/2022, 1:24:58 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०६"#[39m#[38;5;3m
+26151043ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०६"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919334482397","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"20544"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 501847,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AyAUbikCNYbBr2LT7apRH2S',
'x-fb-trace-id': 'C3MYoenkmTi',
'x-fb-rev': '1006554156',
'x-fb-debug':
'TXGtS0ulzsAhXDQ4HdJTxHNthQVyB6qk97b0ShLlhHap6uXe4Dr1Fb4j57dleBOWDHLASal3iYVWv9zoiN
h8YQ==',
date: 'Sun, 06 Nov 2022 01:25:21 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919334482397","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"20544"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 122845 - #[39m11/06/2022, 4:34:40 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "phone" violates not-null constraint#[39m#[38;5;3m
+1783129ms#[39m
QueryFailedError: null value in column "phone" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 122845 - #[39m11/06/2022, 4:36:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "phone" violates not-null constraint#[39m#[38;5;3m
+101331ms#[39m
QueryFailedError: null value in column "phone" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 122845 - #[39m11/06/2022, 5:18:24 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०६"#[39m#[38;5;3m
+2522497ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०६"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70477"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 87978,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ABLHFFTFJxxdO6trf7RE4Pj',
'x-fb-trace-id': 'FgZrFRMMyi9',
'x-fb-rev': '1006554221',
'x-fb-debug':
'0SaDqF8DQm4CE3DqWvG9N2PA31aD98kDta40KVrsm8OKap35zyMchLu5opeaiJ6Gbp6r6EipxV+EFHHurT
+qzg==',
date: 'Sun, 06 Nov 2022 06:54:54 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70477"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44703"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 88610,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A3sNsUjO210Aki7RmovNwQa',
'x-fb-trace-id': 'BS0Zbzf1FKh',
'x-fb-rev': '1006554221',
'x-fb-debug':
'7uUT2rKR4bGQX6VicL2L8EfbyAuhXNAHm9SoGSxsugr6DlMbNn3Iv8VMlGp/rtzGoZkiPwfP05tvdfSEWk
k5jw==',
date: 'Sun, 06 Nov 2022 06:55:36 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44703"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17388"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 89112,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A8MKG_FIMLn8GmAeF0sx86J',
'x-fb-trace-id': 'Egc3XTN+Xze',
'x-fb-rev': '1006554221',
'x-fb-debug':
'jLW1Doa2Zsp7e9W15rYDF/0l8r5v7in+9m2LfLvNR86j6+hUh59gfUA4TR1SCYk28OkePX/
D7uqBz5OMUNibAw==',
date: 'Sun, 06 Nov 2022 06:55:58 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17388"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12371"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 89972,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AxqzHB7frysuW3ZvbGOqcd-',
'x-fb-trace-id': 'FiXdKmw1pW5',
'x-fb-rev': '1006554221',
'x-fb-debug': 'WcB64hq8kEM11FnsGVyiZgiPEoWGmSgziz+GlihPTxhbd9kbwh+BKk+
+a2gdsqmwlkzTr0CRd8e2mbrBNS4Hag==',
date: 'Sun, 06 Nov 2022 06:56:19 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12371"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"82326"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 91263,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AO_YTMDbLOhBOOoWLlmI_qr',
'x-fb-trace-id': 'BUZYb0kw6vO',
'x-fb-rev': '1006554221',
'x-fb-debug':
'LInzV4EF4rhh0IL4AGNfNcxJYgeSfnnK9Yaz+CL5VlJXBeOBxidl0S/vkPlzFGpl4O/
LlwIWPsGJry7Bgh+9qw==',
date: 'Sun, 06 Nov 2022 06:57:14 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919936310490","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"82326"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918329412871","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"76003"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 98883,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AA4X052xslwb-rM4tgfIVAW',
'x-fb-trace-id': 'FoEbo7RFphX',
'x-fb-rev': '1006554238',
'x-fb-debug':
'Sy6nfpUr1BUQpD7zeYc1Pi5R+NBgFxuo2Ax3Xych6XHf7e1bgQt1EQoWNNNghnORMPEKB8tmgmTUeOVkHe
/gsQ==',
date: 'Sun, 06 Nov 2022 07:11:16 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918329412871","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"76003"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 122845 - #[39m11/06/2022, 7:12:30 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6845423ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 122845 - #[39m11/06/2022, 8:13:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +3648545ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 122845 - #[39m11/06/2022, 10:09:09 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +6950791ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 122845 - #[39m11/06/2022, 10:09:14 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5104ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 122845 - #[39m11/06/2022, 10:10:19 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +64893ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 122845 - #[39m11/06/2022, 10:10:29 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +10272ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 1:17:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6478205ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919113913397","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"93652"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 42556,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aglpqk-IiwBHRfvXHno3NeY',
'x-fb-trace-id': 'G+pqhV949/0',
'x-fb-rev': '1006554273',
'x-fb-debug':
'GNO35pnr2v1/+0PrkMqRCEv0MQXdsF4Amh+WRYwb1X95hgomLed/ZzKvP39gHTQy94zIrxZu03WuOzoLPV
AFiw==',
date: 'Sun, 06 Nov 2022 13:18:35 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919113913397","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"93652"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 126313 - #[39m11/06/2022, 1:45:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1663364ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 2:39:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+3228087ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 126313 - #[39m11/06/2022, 3:34:25 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०६"#[39m#[38;5;3m
+3315090ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०६"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 3:35:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +55547ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 3:45:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०६"#[39m#[38;5;3m
+631251ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०६"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 4:15:27 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1774785ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 4:28:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +780982ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 4:28:36 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7975ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 4:28:43 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7043ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 126313 - #[39m11/06/2022, 4:28:54 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +11211ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919898485727","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23779"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 156529,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ar1XBxXkdN8_6DJ7HsyOAqx',
'x-fb-trace-id': 'GdcCAJkd0dj',
'x-fb-rev': '1006554353',
'x-fb-debug':
'nZo98j5S+jVSge3W+eW6I6dxpvITMu1xoVLQllgyozNyCIPfKHeiyK9gQUKehSABJN14x/
LWcqvi6oFYV62W/Q==',
date: 'Sun, 06 Nov 2022 16:32:55 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919898485727","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23779"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919540054831","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57910"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 157239,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Amc9fuvJ4mEqZxDHD22Tm6a',
'x-fb-trace-id': 'DYUm4z59R0C',
'x-fb-rev': '1006554353',
'x-fb-debug':
't0dcimCoty0oqGmCW3dUf453x0GfX87MhM/Gdm2TJpTSRfw9uWSs5lt77Kt4pXgc2RHZETXrY8Gao6i6Ii
JTFg==',
date: 'Sun, 06 Nov 2022 16:34:08 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919540054831","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57910"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Not connected
at ConnectionTCPFull.recv
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/connection/
Connection.js:87:15)
at MTProtoPlainSender.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoPlainSender.js:44:16)
at Object.doAuthentication
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
Authenticator.js:89:28)
at MTProtoSender._tryGenAuthKey
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:830:25)
at MTProtoSender._connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:233:27)
at MTProtoSender.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:147:13)
at TelegramClient.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1064:15)
at TelegramClient._switchDC
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1090:16)
at Object.invoke
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/users.js:63:17)
at Object.signInBot
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:344:23)
at _authFlow
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:356:11)
at Object.start
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:41:5)
at /home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:186:9
Error: Not connected
at ConnectionTCPFull.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/connection/
Connection.js:76:19)
at MTProtoPlainSender.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoPlainSender.js:43:32)
at Object.doAuthentication
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
Authenticator.js:21:32)
at MTProtoSender._tryGenAuthKey
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:830:47)
at MTProtoSender._connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:233:38)
at MTProtoSender.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:147:13)
at TelegramClient.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1064:15)
at TelegramClient._switchDC
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1090:16)
at Object.invoke
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/users.js:63:17)
at Object.signInBot
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:344:23)
at _authFlow
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:356:11)
at Object.start
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:41:5)
at /home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:186:9
Error: Not connected
at ConnectionTCPFull.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/connection/
Connection.js:76:19)
at MTProtoPlainSender.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoPlainSender.js:43:32)
at Object.doAuthentication
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
Authenticator.js:21:32)
at MTProtoSender._tryGenAuthKey
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:830:47)
at MTProtoSender._connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:233:38)
at MTProtoSender.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:147:13)
at TelegramClient.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1064:15)
at TelegramClient._switchDC
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1090:16)
at Object.invoke
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/users.js:63:17)
at Object.signInBot
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:344:23)
at _authFlow
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:356:11)
at Object.start
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:41:5)
at /home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:186:9
Error: Not connected
at ConnectionTCPFull.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/connection/
Connection.js:76:19)
at MTProtoPlainSender.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoPlainSender.js:43:32)
at Object.doAuthentication
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
Authenticator.js:21:32)
at MTProtoSender._tryGenAuthKey
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:830:47)
at MTProtoSender._connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:233:38)
at MTProtoSender.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:147:13)
at TelegramClient.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1064:15)
at TelegramClient._switchDC
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1090:16)
at Object.invoke
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/users.js:63:17)
at Object.signInBot
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:344:23)
at _authFlow
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:356:11)
at Object.start
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:41:5)
at /home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:186:9
Error: Not connected
at ConnectionTCPFull.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/connection/
Connection.js:76:19)
at MTProtoPlainSender.send
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoPlainSender.js:43:32)
at Object.doAuthentication
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
Authenticator.js:21:32)
at MTProtoSender._tryGenAuthKey
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:830:47)
at MTProtoSender._connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:233:38)
at MTProtoSender.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:147:13)
at TelegramClient.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1064:15)
at TelegramClient._switchDC
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1090:16)
at Object.invoke
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/users.js:63:17)
at Object.signInBot
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:344:23)
at _authFlow
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:356:11)
at Object.start
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:41:5)
at /home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:186:9
Error: auth key generation failed after 5 time(s)
at MTProtoSender._connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:258:27)
at MTProtoSender.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/network/
MTProtoSender.js:147:13)
at TelegramClient.connect
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1064:15)
at TelegramClient._switchDC
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/TelegramClient.js:
1090:16)
at Object.invoke
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/users.js:63:17)
at Object.signInBot
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:344:23)
at _authFlow
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:356:11)
at Object.start
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/telegram/client/auth.js:41:5)
at /home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:186:9
#[31m[Nest] 129656 - #[39m11/06/2022, 5:09:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +632937ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/06/2022, 5:09:53 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5820ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/06/2022, 5:10:01 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7706ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917907172071","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"47723"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 40121,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A9tRlqKMvv4KRdOXo-rc-2h',
'x-fb-trace-id': 'CBmZ7vP18iV',
'x-fb-rev': '1006554461',
'x-fb-debug':
'dFhfS/qr5TPKk+KG7ICXMf8bYvbCqfgvRsKhT+FODpXm46KscKVluu1rtIWX4tS9yJgS5pJnzhObbuuUv6
PKZg==',
date: 'Sun, 06 Nov 2022 18:08:03 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917907172071","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"47723"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919831441520","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50568"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 52500,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AmbSzY2409d2Lmr78TuKGKr',
'x-fb-trace-id': 'A7XHZ0cgLAQ',
'x-fb-rev': '1006554461',
'x-fb-debug':
'0HG0bpHJGCMgb95KHhEeYGl4p8zz3ZxtIV5Gt3b6S19V5HVnXW419BRpmPR6a+4JmWo+XAyv/
smZ6akbimjidw==',
date: 'Sun, 06 Nov 2022 18:42:49 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919831441520","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50568"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917992307126","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52257"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 141844,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ApfPYF6tBUFvGjbivsA1Ug5',
'x-fb-trace-id': 'AYi3Yh/0Yrk',
'x-fb-rev': '1006554711',
'x-fb-debug':
'VGm+1faDhdkOxkuGpVK+sLT2Y5iFf433k9gpCcwf6P6ggli6MpPNgT8zRxvW6BzjYpedNpVsMhmJYiT//
Dr1lQ==',
date: 'Mon, 07 Nov 2022 01:29:56 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917992307126","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52257"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918949643641","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25641"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 148315,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AIIEVzxbPVKzIYaTf_P1vWW',
'x-fb-trace-id': 'AEgAb6U1t5Y',
'x-fb-rev': '1006554711',
'x-fb-debug':
'yM/L8YFU29MLtlCkSrVO55iSlwV/fYsn82ZopAjdiu69DBkTZ1PL5j18jD1dgydP+pKEySOrwvjoCUzWEp
9H0g==',
date: 'Mon, 07 Nov 2022 01:54:37 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918949643641","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25641"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91993432921","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25757"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 203641,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ay0xBNnDEj7L2-WKNvQkbD4',
'x-fb-trace-id': 'E1ZYysvX7gk',
'x-fb-rev': '1006554753',
'x-fb-debug':
'I2uFXcKxbHql79ocJDk4cUQURL11mguRpApLLx78F9EXUJjCFslNIf8VGtJs/IzoYKxV9vJSCmVdd2L3jH
ZYlQ==',
date: 'Mon, 07 Nov 2022 03:27:25 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91993432921","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25757"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918303621320","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"38021"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 210957,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Awcytc7ChLXTwxRJxv0rLUZ',
'x-fb-trace-id': 'GngzvDBt96R',
'x-fb-rev': '1006554753',
'x-fb-debug':
'2MqGa4H6t0oRQS+snnVjrsoBeNLmFnWvqTqVW+JOQZfNUbr7a9pU/Pb4I2sbupmStvDzmXXexFfRP9qMcX
Bc7Q==',
date: 'Mon, 07 Nov 2022 03:41:02 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918303621320","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"38021"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918303621320","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80159"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 211482,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A8yK60mYESAfnMXINd6-8Qw',
'x-fb-trace-id': 'AbInvxpR/bS',
'x-fb-rev': '1006554753',
'x-fb-debug':
'fKskatSd9enF71C0wRc/Xr1cxDKItWtFPeo3LijQPswXtZhJRYb0APE7zxPjoAesJBqgVokRIqNT/
YXaQh6/bQ==',
date: 'Mon, 07 Nov 2022 03:41:53 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918303621320","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80159"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918303621320","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62846"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 211797,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AGQMSezHx-ecTP08lZ43rTU',
'x-fb-trace-id': 'F/VfHzh97U2',
'x-fb-rev': '1006554753',
'x-fb-debug':
'UXkOheJVKXpl9FMOhqRA1FZHuJ6Y6jpNeIKep7l0BLqeGCdSN7qOKB5IIFEgyrgpvzRBKpAxIlGXBfV28O
R5cg==',
date: 'Mon, 07 Nov 2022 03:42:23 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918303621320","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62846"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 129656 - #[39m11/07/2022, 3:42:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +37962346ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/07/2022, 3:44:34 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +111112ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/07/2022, 3:44:41 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +6707ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/07/2022, 3:45:07 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +26481ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/07/2022, 3:45:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2562ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918081148460","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"98798"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 256455,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A74c8_0n0ZtpDTzmnMgC212',
'x-fb-trace-id': 'GzUP9n8+oNU',
'x-fb-rev': '1006554794',
'x-fb-debug':
'NdFWJvjW38YdtWQ5Ahu+atEpQ9tmwNrVggOk5helHn43/CflIiONHTnOObtwnxCt2EiPe59eXrM2RcAQn+
MZew==',
date: 'Mon, 07 Nov 2022 05:24:46 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918081148460","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"98798"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 129656 - #[39m11/07/2022, 5:24:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5983030ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/07/2022, 6:39:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4461883ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19909"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 298631,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AcLWCjO8Gzg58VkyyeX2YOI',
'x-fb-trace-id': 'Hhzx73YY3zF',
'x-fb-rev': '1006554896',
'x-fb-debug':
'4X0RMjkTBMCNYYscBHvTf1OduIjJIGkJEChqo/C4BfSOl1Dnd1TDsYBSeFNBDV/Gqn/
XPb2OkRqSiDECvkbYZQ==',
date: 'Mon, 07 Nov 2022 07:10:47 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19909"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91908443494","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"66739"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 320284,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ansv6-XrwFDGhIERiinssVA',
'x-fb-trace-id': 'FN5WB3PM1CI',
'x-fb-rev': '1006554896',
'x-fb-debug':
'6g8VIFYQORl0cpKzKAlRvh8AXPknDc4t2Bo0GSdXdIESs3x0MuRzOnYEOFNnlUs1ispNrlOJ3ngYg1NGRJ
KIQA==',
date: 'Mon, 07 Nov 2022 07:57:25 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91908443494","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"66739"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919110523912","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"69133"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 333999,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Af05A0n3vJGv5t7-zgkzmVx',
'x-fb-trace-id': 'D3MdUHZHvFt',
'x-fb-rev': '1006554990',
'x-fb-debug':
'6oLlAkEyP9y1X7sFLXcu/naGMOF3aAnmjkH9epM2Y479aosYKqvQgfF2IT17KH5xTAXqe4e+UkPgCFhcyR
BZZA==',
date: 'Mon, 07 Nov 2022 08:27:54 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919110523912","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"69133"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 129656 - #[39m11/07/2022, 8:28:02 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6527029ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/07/2022, 8:29:04 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +62488ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 129656 - #[39m11/07/2022, 10:27:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "address_line" violates not-null
constraint#[39m#[38;5;3m +7086102ms#[39m
QueryFailedError: null value in column "address_line" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919082931587","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23423"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 402076,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AVwJzzEfTcMgGwP7ElPbXux',
'x-fb-trace-id': 'Aw3lX2c+T6k',
'x-fb-rev': '1006555120',
'x-fb-debug':
'QIRmBKOClp06TqN8d9hhKnUbKq3TvNFJlHe0TCFoYFDKo+0Xg5rg/3+dpSIV55NwfTt8BxIF8/
JWz8W2w07Fjg==',
date: 'Mon, 07 Nov 2022 11:17:34 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919082931587","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23423"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919336173274","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"59946"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 13309,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AwO6aVtN9JdrBYd78tj90sy',
'x-fb-trace-id': 'Gj4k5OR5U9V',
'x-fb-rev': '1006555245',
'x-fb-debug':
'OVeNedmBs678PaOgZoMU3vReTlFdqzm3uVtjCgiPPAR3cX38HHymr/OIaKOIs2hrhwlkjNfdmGnZAQB1UL
F7yg==',
date: 'Mon, 07 Nov 2022 12:25:32 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919336173274","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"59946"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9193361732","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"64898"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 205
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 14788,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 205,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AZIhNyrlvcdvq5DhacgdVM0',
'x-fb-trace-id': 'G1YdnU1gQWm',
'x-fb-rev': '1006555245',
'x-fb-debug':
'r1IE2PJJgUnnUZ0bmvRHobu7npGVuIx62tVVxRptFEASYWKwE83uhBB+pG7CpmPbrArsmhGLzYTZQUfTxF
1NNA==',
date: 'Mon, 07 Nov 2022 12:28:36 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9193361732","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"64898"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9175","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51063"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 199
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 15427,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 199,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A-y7uvKx099u9X0ma1-6flJ',
'x-fb-trace-id': 'AFnqUt5Py4x',
'x-fb-rev': '1006555245',
'x-fb-debug':
'TXClJXGS7Vd5mfe/MGUEnQKnmZgDL1veUadVrODOGHkOZgfBBuVXppPWlU07cclHlSBn0zQXl5p37FXkRt
yDEA==',
date: 'Mon, 07 Nov 2022 12:29:07 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9175","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51063"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919336173274","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"55248"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 17250,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AnZ3IAUI-6dV6pdYBhAbGUV',
'x-fb-trace-id': 'EJd0zObRh0k',
'x-fb-rev': '1006555245',
'x-fb-debug':
'dZgQ2mPSsSE+SEWYhsNeiP9GtenF5qsIP/u8vYd67jtf+3oEH2ZMakjx3pzOp8O+8hcwgEeQ/
502PplilAkrAQ==',
date: 'Mon, 07 Nov 2022 12:30:15 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919336173274","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"55248"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919727310486","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81291"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 78081,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'At71CEqfCCduI2Jnu3kKGG4',
'x-fb-trace-id': 'EqIRxpV/Kaw',
'x-fb-rev': '1006555245',
'x-fb-debug':
'nvm9mqptQI14nue4qT9gD2z9GdjL65u3dMd3DrCBSXajKkpc3Dw7KdnVp0ZM8w1JfyaEHktlBkT8Nfk5YG
Qauw==',
date: 'Mon, 07 Nov 2022 13:37:28 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919727310486","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81291"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 138594 - #[39m11/07/2022, 1:39:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-०७"#[39m#[38;5;3m
+4805247ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-०७"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/07/2022, 1:51:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +702015ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/07/2022, 1:51:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1563ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/07/2022, 1:51:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +958ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/07/2022, 1:51:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +295ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/07/2022, 1:51:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +213ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/07/2022, 1:57:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +397783ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/07/2022, 2:04:36 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+403544ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918726912004","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"41637"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 102623,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A76b_xo9tENw13di7PmLMiX',
'x-fb-trace-id': 'HyG6mkD2Qyf',
'x-fb-rev': '1006555245',
'x-fb-debug':
'XHZJH3D2GLCFdOU2XHDJMbbdpKRfneL5JCu06r4jNM06cCWTW4rh1ah6lwf7UuNeYy+WQRlipLulr0OPUy
6xuQ==',
date: 'Mon, 07 Nov 2022 14:05:19 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918726912004","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"41637"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919634360589","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29263"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 106678,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A1UvUwXMmGpdJFC_5noQXqN',
'x-fb-trace-id': 'Bo5LKKyccIz',
'x-fb-rev': '1006555518',
'x-fb-debug':
'xuV8xeIspOx/M+sLDtv1d7awrQLmqyCD3c0YeUlPfP9pqh0BGU3cJ6l1cosVgw3objDdde1JhEYFgp3zId
uAhg==',
date: 'Mon, 07 Nov 2022 14:11:29 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919634360589","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29263"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 138594 - #[39m11/07/2022, 2:13:24 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +527859ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/07/2022, 3:01:36 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+2892253ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+911234567890","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"20404"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 137653,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AwbP1MVGpD8boSCpx0TjXPU',
'x-fb-trace-id': 'CdLjGNohRAF',
'x-fb-rev': '1006555518',
'x-fb-debug':
'S+o0EVP3Yj4CuWk7Mq2u9oTOM7otRkepN4/fpttVQjoZvha1LKB0uuhsiLx8VGhwNA5OIiPFz7c//
hVYB5VNqg==',
date: 'Mon, 07 Nov 2022 15:18:18 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+911234567890","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"20404"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918740096376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52423"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 137808,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aq30dcC8OtaYZMJRf5v71Mp',
'x-fb-trace-id': 'ESlBrl1+v7G',
'x-fb-rev': '1006555518',
'x-fb-debug':
'wguoV5D7qBO2CzJD6NZQblRG1Vh9B6MDIWbwx0+ZIyz1+62odlomTQArUpOPs28Jw+VB+ef2PiqBSBp5gp
lcyQ==',
date: 'Mon, 07 Nov 2022 15:18:41 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918740096376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52423"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 138594 - #[39m11/07/2022, 3:55:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3225564ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918018670707","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"92078"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 185834,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AiQbKn2XW-6ArANtfCEd9lY',
'x-fb-trace-id': 'BhGx8Ewpuyx',
'x-fb-rev': '1006555518',
'x-fb-debug':
'XthRqyYi8hfj8E0X3E+JZASbJr7TLs7lcfKjTVRFMg7WCkxMxuoHX0Ucgpld/JscuH2rcx1nu/GbS/
Uj8VOhmg==',
date: 'Mon, 07 Nov 2022 16:40:17 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918018670707","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"92078"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 254249,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AeaEEbk_oZ46igNCOhku83O',
'x-fb-trace-id': 'DSH0BmZrnYh',
'x-fb-rev': '1006555518',
'x-fb-debug':
'WHDKw+AeD0MfXXtr+4Hv6SXohswxMmUcNSxrBbeBrsWDk9EM1nwRW2ig1rSbZmWL20Gvh3DM+GVjJmIbc3
5VIQ==',
date: 'Mon, 07 Nov 2022 18:37:45 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 138594 - #[39m11/07/2022, 8:00:51 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +14729333ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/08/2022, 12:38:17 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +16646185ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94140"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 399306,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A1TzDDEkdHURTYAKUim_BZy',
'x-fb-trace-id': 'DRPn7MI0VqE',
'x-fb-rev': '1006563143',
'x-fb-debug':
'j5SErPWPiRF0IzIlZjp4Pe38j0Itdy8OP5Q3MBWmU3XtABOyxzd2TINWKFwRQc+vERN5nSir7iW6XeuQq3
K5fw==',
date: 'Tue, 08 Nov 2022 03:15:41 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94140"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917839837147","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"32020"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 410880,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ALg00VX3fCO7Y_pFJnVKGmE',
'x-fb-trace-id': 'GJsxL3/SkU2',
'x-fb-rev': '1006563143',
'x-fb-debug':
'BSV8Lm/kI6V5pi9a5abanD6krgV/4GY2PNvwMV/1x27DdRKR0GpSU/Y6PE9Ki9eSeDB0oT3LthcrioETo7
ufMg==',
date: 'Tue, 08 Nov 2022 03:44:55 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917839837147","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"32020"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 138594 - #[39m11/08/2022, 4:25:37 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +13639467ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918527834283","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61884"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 461488,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AVR4deJnX5-PWmwfGuw5Q7G',
'x-fb-trace-id': 'EKjYgREiXs2',
'x-fb-rev': '1006563143',
'x-fb-debug':
'AFQniWmBMrmyggYLfdNgv87H58Pt5XY4CeS/aj9PV6XH1JFETXyfzb2S1YIoiVjzCoPzD99o9YsIgNpk3Y
AobQ==',
date: 'Tue, 08 Nov 2022 05:19:30 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918527834283","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61884"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 138594 - #[39m11/08/2022, 5:56:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5438251ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/08/2022, 6:18:41 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1346236ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917805855172","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"77115"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 523499,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AdAhkWILAoR4f8jJ6sjiQsR',
'x-fb-trace-id': 'BHAwkBWKl8T',
'x-fb-rev': '1006563143',
'x-fb-debug':
'DfNm9jxz51S/jxpSf31PQaJdsYQRKW/z2JNSGcujXKD3/fEiQnp/WrOdJcbIazajSxzYv8teFUneBvsGCb
3RxQ==',
date: 'Tue, 08 Nov 2022 06:49:57 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917805855172","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"77115"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 138594 - #[39m11/08/2022, 6:51:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1960820ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 138594 - #[39m11/08/2022, 6:58:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +420173ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917805855172","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51434"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 543430,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AslOaSR-mUOKEZKyLKc4nWZ',
'x-fb-trace-id': 'BHdXE/QoqVx',
'x-fb-rev': '1006563143',
'x-fb-debug':
'28sRGaqZXCybH0ihb1mzEbs0/Y5M0TYwCM5ZDmmpOhhRY+Gpo0IwFsETFlPw89ptvfffSYmPpQEZXU3zeO
GwYA==',
date: 'Tue, 08 Nov 2022 07:10:13 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917805855172","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51434"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918080808080","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"42008"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 546472,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Awdvn1TeANBv1cjtMJ7aWiu',
'x-fb-trace-id': 'De3OB6KOa2X',
'x-fb-rev': '1006563143',
'x-fb-debug':
'8NPtM+HEm+OkWrp3A8WTWbwij0uGIgFJD6oD2AF0ES6W9HPoQklDPThylBxP1EzzuZpUxDbkzXlMP+/
N8fUewQ==',
date: 'Tue, 08 Nov 2022 07:10:42 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918080808080","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"42008"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919163764916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28157"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 619753,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AktwFTdLFLSM_07sfq218rN',
'x-fb-trace-id': 'Cx2hqfbmoWV',
'x-fb-rev': '1006563143',
'x-fb-debug':
'sgBG3BZ2W/+oXoZ9aTZDCtu2SSLnqKQF1Y9q6zE0qcWK+Ur9TAvbwsyxoL7wleLBV3ndcT8oVOEY4JUL+c
cvxQ==',
date: 'Tue, 08 Nov 2022 08:34:23 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919163764916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28157"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919163764916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"27291"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 620196,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A0QvUY3vssfL7yc6WF-Vxpo',
'x-fb-trace-id': 'C1chM9K8C75',
'x-fb-rev': '1006563143',
'x-fb-debug':
'Ps32vlA2veSjRhwghAbIXtf78trLxgQq+xU/zZZXj6LB7eEp9msfYRkZdiP1hmgq/
yA12/7oPXMRFBjUKp9BJg==',
date: 'Tue, 08 Nov 2022 08:35:00 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919163764916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"27291"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919163764916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39987"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 620573,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AYwWB2IoemgJAKlHkfRBB2B',
'x-fb-trace-id': 'EfQBwVHRvYb',
'x-fb-rev': '1006563143',
'x-fb-debug':
'BUFgk/N5/cQhgCWeCf7NRyohLEBbF4Whu2hvN2RA2BZkZVAvhOOLqvGF+u/zxCemqGcNqTjs9O9xhEcDEm
Zi1g==',
date: 'Tue, 08 Nov 2022 08:35:27 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919163764916","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39987"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919163764976","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"63732"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 621019,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AyloJwCIYIYv_DTO-68QszR',
'x-fb-trace-id': 'Cd/73WSIoPS',
'x-fb-rev': '1006563143',
'x-fb-debug':
'zhm1vgKVcoVu+EHfTQ4WIAXjQQRQpCIJLD27B2Xgv5hD3PP85/fqkDO2941yv1R62m9fXvPccLJ6qAqdAe
W8xg==',
date: 'Tue, 08 Nov 2022 08:36:09 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919163764976","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"63732"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91916376491671","type":"template","template
":{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"99749"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 209
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 621845,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 209\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 209,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'As4OAlt6y0w0SXrlIVH-Yzs',
'x-fb-trace-id': 'HcKvua3qWQS',
'x-fb-rev': '1006563143',
'x-fb-debug':
'kwlZk/V6b4RPRnAn/gygAe2SZOyp2FsM5S3n2a45xPN/nPdOWP2ov9ljWHQGJk0MiSWpga31g4eKYBgv7j
nGPg==',
date: 'Tue, 08 Nov 2022 08:37:29 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91916376491671","type":"template","template
":{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"99749"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 209\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91916376491671","type":"template","template
":{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51762"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 209
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 622336,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 209\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 209,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A1oq8KkokUzRMialwKE1Os-',
'x-fb-trace-id': 'AZ8pKW/49dP',
'x-fb-rev': '1006563143',
'x-fb-debug':
'2YDNwz3DsEBzpjdDyIUCZzSto+bdJIOTmmQQwJT7idtiK9nr+SOwn2uz1tebPDLgF1kwDS48N4sTl3sJSa
/jtQ==',
date: 'Tue, 08 Nov 2022 08:38:01 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91916376491671","type":"template","template
":{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51762"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 209\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 138594 - #[39m11/08/2022, 9:04:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+7555943ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 138594 - #[39m11/08/2022, 9:16:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +744687ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918982558763","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89170"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 670063,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AORTh2Kse02E48zuzDFumty',
'x-fb-trace-id': 'DyyfNLtbg5r',
'x-fb-rev': '1006563143',
'x-fb-debug':
'ifFQmq+I5Wig+Hq+PjXhz10QdsWBUALSy8rl79m7ACvyyjaLNkKZ6NQIO24r0/TZw0My+J87Zp1jz1j0+Y
0TfQ==',
date: 'Tue, 08 Nov 2022 09:38:17 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918982558763","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89170"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919193813860","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21917"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 652,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AhaSkgYLK8xhpt-AN7ySfEe',
'x-fb-trace-id': 'AhqTgr5ALWu',
'x-fb-rev': '1006563143',
'x-fb-debug':
'qReOOMmgyzL0SRFVn1odqnlOf6z89Oq8RrB21B2mOSs+DsWx+kI4kTAXWIn2tGUAUJ0kBR1VhKNw1lYVke
wHdg==',
date: 'Tue, 08 Nov 2022 11:08:20 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919193813860","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21917"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919193813860","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80033"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 864,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A5phEFkczBrUaVI-yWxLpbb',
'x-fb-trace-id': 'HqxelFqwNiq',
'x-fb-rev': '1006563143',
'x-fb-debug':
'gHqPpFDAvY7DFrCC0ApVgPjAzrADykA5EfDnYnwPWptfJrToDvK4sYz4tIu6vbF9BgOyYy8LtYRWJSE+PN
RyOA==',
date: 'Tue, 08 Nov 2022 11:08:48 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919193813860","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80033"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 148583 - #[39m11/08/2022, 4:33:50 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +12682346ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 148583 - #[39m11/08/2022, 4:35:46 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +115820ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 148583 - #[39m11/08/2022, 4:36:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +70886ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 148583 - #[39m11/08/2022, 4:37:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +11745ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26341"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 135039,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 2,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A4xVLlKDGnXb0s8ghpzSi3E',
'x-fb-trace-id': 'BUNhIgkXT8t',
'x-fb-rev': '1006566050',
'x-fb-debug':
'3z0J1TlFsXLV19Ihnz7G62WY+hbZhHIPfsGUQ7WxhpEstVCHhe4vur3bpnuYcAof/UoWX/
2mYRFLhEiB5LEDzw==',
date: 'Tue, 08 Nov 2022 16:52:08 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26341"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"10719"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 135092,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AQCqB0HAfLzeh30M-jcpgd0',
'x-fb-trace-id': 'Bu8ZH2m7Wp9',
'x-fb-rev': '1006566050',
'x-fb-debug':
'tkgnds9o0j+UMnzJFsjqDFLZnGzSOiawI1K+HeeW+jjLEWX9DLtrAM9i1wY2F/RBbre+xy0vITImp+/
mpKP5Ww==',
date: 'Tue, 08 Nov 2022 16:52:08 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"10719"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15801"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 135462,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A2k25JEU7wBQCrvtKB_P8Cz',
'x-fb-trace-id': 'BYyTLOv1vp0',
'x-fb-rev': '1006566050',
'x-fb-debug':
'18YiUaYLrPvOODQTaacLxhaxEXL6M1hvCM8+U28hWesDdly2xP3BE1drqQH6t0T1SDbaKyTMYz18wmmKyV
FMtw==',
date: 'Tue, 08 Nov 2022 16:52:29 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15801"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51999"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 136259,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AFYRNEBPDo2km6Wt_v2UBuV',
'x-fb-trace-id': 'GYrpGyMVGT1',
'x-fb-rev': '1006566050',
'x-fb-debug':
'nWhBfhzHq+OCS4z7WvwxJ7Es1QWHlI7/GjE1gDrfOF2lYTohnonByLGH0S8Bp2qKj5NT6A3mgOUE2t7Qs9
7u9g==',
date: 'Tue, 08 Nov 2022 16:53:07 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51999"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"37664"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 136599,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Akd_qZNjOYP_X1IICU5DTPD',
'x-fb-trace-id': 'EQKxD10cKeO',
'x-fb-rev': '1006566050',
'x-fb-debug':
'UPT8nT+gTT0eSsXMVPIyLJlVo9RbGME3NBp0WCxI87tOan4ZJKuCm86LmawKzivoO1LNUoaxe9qxZBIsAA
w4Sw==',
date: 'Tue, 08 Nov 2022 16:53:37 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"37664"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 148583 - #[39m11/08/2022, 5:19:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+2529230ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61638"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 162758,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AGNUkT7KUa_d0KeAJkGlImf',
'x-fb-trace-id': 'Dj2EWNyNhj4',
'x-fb-rev': '1006566736',
'x-fb-debug':
'CGDSxg/OkE88K2iDOohZ8vMn0Ic5pSITmU8RgJGwh+s6QfJEzVLXSmkohN0GPausDIjoKy72wc6ggkhWpq
60WQ==',
date: 'Tue, 08 Nov 2022 17:37:16 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91999681376","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61638"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 148583 - #[39m11/08/2022, 6:18:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+3528189ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 148583 - #[39m11/08/2022, 6:28:42 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "jee"#[39m#[38;5;3m +635694ms#[39m
QueryFailedError: invalid input syntax for type integer: "jee"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91740887520","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"98610"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 184852,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AwgsHibUrxANxYZTOIbl8xg',
'x-fb-trace-id': 'BGZ1UzXTBY0',
'x-fb-rev': '1006566736',
'x-fb-debug':
'AcfiG+8iFB4u5qBzXp+sigSqEm7UP0b1iagHRaxJ0U5FQIYf547GdFE7u6q2Fsg1Ao+wFW4Ke0gSAGbPmq
3clg==',
date: 'Tue, 08 Nov 2022 18:41:57 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91740887520","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"98610"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91740887520","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"48888"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 185067,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AtCz4yXwJZiyNc15mpqyG8r',
'x-fb-trace-id': 'BE3rbCSXYTp',
'x-fb-rev': '1006566736',
'x-fb-debug':
'S7AM+K3LtqCMpJ2asVADBVh2jV/yycpV6yd8f4THY+PHqtB4Xl/7aYVZ14HMWMOM6SCBEOtSHSxvsm5w/
u2W3w==',
date: 'Tue, 08 Nov 2022 18:42:29 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91740887520","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"48888"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917408875720","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"35708"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 185507,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AInqFzvFCpe915HS27tRtTk',
'x-fb-trace-id': 'Ck4IX6qL3Tm',
'x-fb-rev': '1006566736',
'x-fb-debug': 'Fcwe6Ct5USuUZzW+NNyR+sNsGwCvnjYYqNqj1dxzEjZ9J2nRCZmjn0LCUJ+
+Njuz4PCth0sS02XLg2VJHwDRAw==',
date: 'Tue, 08 Nov 2022 18:43:24 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917408875720","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"35708"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 148583 - #[39m11/08/2022, 7:38:31 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'value')#[39m#[38;5;3m
+4189283ms#[39m
TypeError: Cannot read properties of undefined (reading 'value')
at SharedService.getSettingValue
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/shared/services/
shared.service.ts:880:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91965048970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"18355"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 202200,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A__F-osfLqEs_XCcONo7GX2',
'x-fb-trace-id': 'FOB4Rb8scFK',
'x-fb-rev': '1006567615',
'x-fb-debug':
'VMZ1I40jiJEJLt53J/oqlhwiS5soedS2tF9HyeZ1fnf1NODeu66bxYX2vMyJ8NEqbzwfXhkqfSvpOyKeNU
tBwA==',
date: 'Tue, 08 Nov 2022 19:40:34 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91965048970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"18355"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91965048970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21624"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 203436,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AvGC-eCOPUJq0f5B-S7EX28',
'x-fb-trace-id': 'EJNj/Y55L4L',
'x-fb-rev': '1006567615',
'x-fb-debug':
'CmnqRfps/pE7JdXM7mjWQhTiWN4pvO1vnfqCtBlDhyC7AYF4TRgJeYEaMRMpwxho1uCkljG8qvdabnvZNT
L+Dg==',
date: 'Tue, 08 Nov 2022 19:42:57 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91965048970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21624"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 152092 - #[39m11/08/2022, 11:18:36 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +12796256ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 152092 - #[39m11/09/2022, 5:08:49 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +21012396ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 5:51:20 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+2551184ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91935858405","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43570"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 169437,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ACGME0O4g54ey6Z9TT5A2ee',
'x-fb-trace-id': 'BqC4cyeLmth',
'x-fb-rev': '1006572897',
'x-fb-debug':
'or1ZZdvucV3ZOxYyvsaCi6LOMkPOA4lo4uLxNLbXBpLLmJuOd3Aa9qTBqJYhEs7FrySQF56/
GJ9q6ESzrUKrFw==',
date: 'Wed, 09 Nov 2022 06:31:56 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91935858405","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43570"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91935858405","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28085"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 169833,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AnpX7q5oMyC2bkDqya0af6n',
'x-fb-trace-id': 'Ap8EKoV5La1',
'x-fb-rev': '1006572897',
'x-fb-debug':
'4fDCBnGK3ByKld7sDvM7d2zPn8iu6mk97zAWf4y2B1OWWECAyM8a8Cd4EJjjngB39yuh61TEYPwVL2kw95
0sOQ==',
date: 'Wed, 09 Nov 2022 06:32:27 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91935858405","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28085"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91935858405","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"47337"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 170160,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A2JDn2f_WSU4NB9HbWPv-2N',
'x-fb-trace-id': 'DYsX5VOQqhq',
'x-fb-rev': '1006572897',
'x-fb-debug':
'CLrKUvSbuhzf5op4phshFw/Bywp/nhj02phDEW9kXzZmL/eNBIbfGPodO9idwzt7rNEsefyXAKRx4+W9UH
wsuw==',
date: 'Wed, 09 Nov 2022 06:32:40 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91935858405","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"47337"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 152092 - #[39m11/09/2022, 7:08:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+4653129ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918318716057","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84795"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 240014,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AzTlbeb7ZOCddirwoti4vwZ',
'x-fb-trace-id': 'ESojMaMICcW',
'x-fb-rev': '1006573260',
'x-fb-debug':
'3xEFsu1a/rpCLe/b/b20QWbQblWCe6Ew/CwqSyxoqGCBaOQM+rOoBPWFDf+M6z5s5nbyIs3Stvu47yDs0U
hByw==',
date: 'Wed, 09 Nov 2022 08:27:04 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918318716057","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84795"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 152092 - #[39m11/09/2022, 9:17:24 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+7711236ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 9:17:34 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+9540ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919093314568","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"55094"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 299067,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AWDHPb3ifA14MUwXvxoqIAD',
'x-fb-trace-id': 'CMXE4M1Tcd/',
'x-fb-rev': '1006573289',
'x-fb-debug':
'zyAme9Cp7EwvrU5cNorP+amvjSbIP5XfVX0V79VuPUALooPEqz4CfUvKRYbR5KP8VRWVaDitPksMAirEP3
7sgQ==',
date: 'Wed, 09 Nov 2022 10:10:33 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919093314568","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"55094"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919093314568","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81203"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 299493,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AllIsRdadwlHeacvub8iiN5',
'x-fb-trace-id': 'FTuKeCR6QAf',
'x-fb-rev': '1006573289',
'x-fb-debug':
'QuJAYQ65g7qICHg2I7cZSLQcuRjZyLyKh3FqaldvU45500bFJEjzVw9toYcEbHtDwc2bF/
fKDlTh0ANFrKXJKQ==',
date: 'Wed, 09 Nov 2022 10:11:08 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919093314568","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81203"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917597228833","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49409"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 304318,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ad3ZqVCu_XPpgBs9GcAdMrj',
'x-fb-trace-id': 'DTXUEuiOV7x',
'x-fb-rev': '1006573289',
'x-fb-debug':
'OmSMLoHkyWWFd59oB54UYXWr7oQwB25L+vUb8KOjCG0LdX1Pu7sqyNNoIRQpgEk+
+yyEe1DuJVToLzIlyD14fg==',
date: 'Wed, 09 Nov 2022 10:18:44 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917597228833","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49409"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917597228833","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90637"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 304752,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ASPXzPNeDWE2225WVQmlKQf',
'x-fb-trace-id': 'Cf5QzAs6o+t',
'x-fb-rev': '1006573289',
'x-fb-debug':
'qULaab0rmMBuxPQdJcvuaGjDyDOctwWBsejHra6+e7M5r9TiXssTzz8Q+ANskxdtCxQ8zP1xazok2Oap9R
RA8w==',
date: 'Wed, 09 Nov 2022 10:19:18 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917597228833","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90637"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 152092 - #[39m11/09/2022, 11:21:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7421596ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 11:21:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +4ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 11:21:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +3ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 11:44:05 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1370180ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 12:54:51 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4245981ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1104204ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:20 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +4209ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +726ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +252ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +186ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +266ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +290ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +36ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 1:13:23 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1522ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919340812433","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62877"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 446712,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AVGMeqTpgfuNtkQ8CcxcFPO',
'x-fb-trace-id': 'BP6MrabyOoA',
'x-fb-rev': '1006573749',
'x-fb-debug':
'zBMBO4ZW3yNaxgl3bi6hrqaK3DPqD5FPYwVfGhDA2BXBwasiMnmtbYWjoou+AFz4Jvgcb1HgJfQiZUAwQ0
VLjA==',
date: 'Wed, 09 Nov 2022 13:29:39 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919340812433","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62877"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 152092 - #[39m11/09/2022, 2:51:41 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5897632ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919617592734","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26851"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 555848,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AL6TQ3ytdkwCchaNVVd0Afs',
'x-fb-trace-id': 'D18FfjRHL2H',
'x-fb-rev': '1006573749',
'x-fb-debug':
'JIGFwts+x+LXmQRBN+tN+BndsE49taafCgkhbpWGXwf0yXtQap8CgtO5ffVwb5dOxpGcZC8obcarKIXVEG
J6Hw==',
date: 'Wed, 09 Nov 2022 16:37:52 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919617592734","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26851"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 152092 - #[39m11/09/2022, 5:08:56 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +8235717ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 5:08:58 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1133ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918074631427","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"59713"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 575124,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AsjhtMuHXXgL0FJu9s-Eaf3',
'x-fb-trace-id': 'BQhpZdY0RPv',
'x-fb-rev': '1006573749',
'x-fb-debug':
'VCXu/MJwu6JwWryoPfbKq+PpIx2OaENL+09laSMsF9M2LUvN5SXXHAAjTBx317BZ+AEi/Iw/
zPZ+Z81Ki+syDA==',
date: 'Wed, 09 Nov 2022 17:15:12 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918074631427","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"59713"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 152092 - #[39m11/09/2022, 5:26:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1052427ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 5:54:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1701496ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 6:44:50 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2998362ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 152092 - #[39m11/09/2022, 6:45:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +43657ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9190797268","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65962"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 205
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 130857,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 205,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ArQBPXO5xfVot2JESKu88mM',
'x-fb-trace-id': 'GWCpw5rdufi',
'x-fb-rev': '1006577543',
'x-fb-debug':
'WUYaNtOfayEmpLw+rO0xM8LIEgeKWcZq6cCWhjhYo+PkbguLFkYqmHuygdeTM3HnC8bN2zqmR2OUjk063S
+/Ig==',
date: 'Thu, 10 Nov 2022 03:51:46 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9190797268","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65962"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9190797268","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54408"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 205
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 131093,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 205,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AmiO-oIKL8FbbXYeUts-ayB',
'x-fb-trace-id': 'BP2XZ5ja9By',
'x-fb-rev': '1006577543',
'x-fb-debug':
'3ad9cfUG0BbkUqd5w8KXBRuY7gi+Z15TLRdc7QRnXK6yXjGLE3G0iRwJIzSJBHOhMa3qdkZ6qFgLyNWl8R
lQhw==',
date: 'Thu, 10 Nov 2022 03:52:42 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9190797268","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54408"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919190797268","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44835"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 131290,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ax63vSLsOkM2OkHscRssBfg',
'x-fb-trace-id': 'EGkpwVIuWvX',
'x-fb-rev': '1006577543',
'x-fb-debug':
'pC2SenAzZIh4iGa3d+YAhCa5qlone3Ye+0IOx4iLbyEEjhUR7L2toR5JrNT6c32L3PWhEBdyi7bF5hZRDz
mLHg==',
date: 'Thu, 10 Nov 2022 03:53:14 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919190797268","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44835"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 162621 - #[39m11/10/2022, 3:55:33 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +28384835ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 4:52:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१०"#[39m#[38;5;3m
+3396571ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१०"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 162621 - #[39m11/10/2022, 5:32:52 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +2442594ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91930938779","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39057"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 220749,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A5IQXgn-7LJGRXehQzSZ-3l',
'x-fb-trace-id': 'GgUjXE7H4sh',
'x-fb-rev': '1006576698',
'x-fb-debug':
'G35b08dKKNDtr1fwiXRN5h+9jDnztq8UZFBQVLkWwQQ7J4e7wMP1IpPkoNG7dv1eS950354IA9WThA5d/
RTjrQ==',
date: 'Thu, 10 Nov 2022 06:18:35 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91930938779","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39057"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91930938779","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31325"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 221083,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AbJ1fBhF7pazrz0AU5SnHfE',
'x-fb-trace-id': 'C6/H+PwkZQP',
'x-fb-rev': '1006576698',
'x-fb-debug':
'LZUNF9Sv4PPSwCZpZyIfhYHJNHekcAs3bSMmCGfeJ35u/cm/eqMWGRmvDqTBEFdxBKc3KY6f1waHiKzo/
uYcgQ==',
date: 'Thu, 10 Nov 2022 06:19:09 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91930938779","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31325"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39671"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 398646,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AmonA5MScdjq_rtb4JdsWUr',
'x-fb-trace-id': 'FJKxzMTufCW',
'x-fb-rev': '1006578210',
'x-fb-debug':
'2s8GB8ct/HuzJhhQjzTWI5FlGKQLL2Bm2DUmibmRuPPoeuTDufd/uEm6j80UqTwODbrexqfyb7zVVxe2Em
c0Zw==',
date: 'Thu, 10 Nov 2022 08:08:21 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39671"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 162621 - #[39m11/10/2022, 8:08:32 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn cte.partof does not exist#[39m#[38;5;3m +9339984ms#[39m
QueryFailedError: column cte.partof does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 8:18:37 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+605201ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 8:19:55 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+77694ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 8:36:54 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+1018986ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918767048031","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"98824"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 452501,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AOcsJkXXeCvlYgiHfxdR-53',
'x-fb-trace-id': 'AKP9Acw1HIe',
'x-fb-rev': '1006578342',
'x-fb-debug':
'LjeleCfzNOXA9wtJ+lFYflK6PZuPjeYhIxHqlqAUzfV2oPWzQHb3wVQbX3eZBS4gj51XLCeHR98EcOjfQN
cUwQ==',
date: 'Thu, 10 Nov 2022 09:44:51 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918767048031","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"98824"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918767048031","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56973"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 452782,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AfwnUy1vL_n6-5xfg3ScqS0',
'x-fb-trace-id': 'DSfaf9kKI8r',
'x-fb-rev': '1006578342',
'x-fb-debug':
'zAJG1/voDrSWjLHcVScd7g79kapM7ndxwAvqyvB6kkRGD0W2XKXqezNq26/yMYUcndA3DLpiCJn/fT/
pdGO69Q==',
date: 'Thu, 10 Nov 2022 09:45:22 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918767048031","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56973"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918767048031","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90243"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 453107,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AjXyDdp2BPErr46n-yqoSSY',
'x-fb-trace-id': 'F5ie5GfUUeV',
'x-fb-rev': '1006578342',
'x-fb-debug':
'0mTDmxvXsWKkK6EedFYam0yyoVO6mE/vJ82yxWE6Y3I0yzSqc+DXC/qw+D6cE/B5Osw+1VWsge6ulOmuY/
fMng==',
date: 'Thu, 10 Nov 2022 09:45:48 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918767048031","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90243"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+914358849000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50794"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 486284,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ANwske9HTnffzPPMU1AyWLL',
'x-fb-trace-id': 'D2DrzSQ33gT',
'x-fb-rev': '1006578342',
'x-fb-debug':
'DTmB+8LulAaeoQvGW92wptSoKqmMRnEvLyW3A8aFX/79p0VmCKqk6Rr2EC2i3ZmXg1VpqNEVrgaZ3YnRQN
MmrQ==',
date: 'Thu, 10 Nov 2022 10:32:21 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+914358849000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50794"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 162621 - #[39m11/10/2022, 10:39:57 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+7382591ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 10:40:57 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+60864ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 10:41:51 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+54027ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 10:44:08 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+136548ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 11:24:25 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+2416682ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 12:23:29 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +3544662ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917348447350","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75160"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 563047,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ABTT8OqdyQY62QyGeSw6TI6',
'x-fb-trace-id': 'CJdvi1MLGKG',
'x-fb-rev': '1006578342',
'x-fb-debug':
'5MHlZzl05ShcJTTOr+o8/T3TgH2xYoryK0gSpzofNq5m9asDPwwUPe+TsIPSG27WkkGjYnhvKt0GA0hDcS
y+0A==',
date: 'Thu, 10 Nov 2022 12:27:03 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917348447350","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75160"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75407"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 629524,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AhWViDLVqvhehhkS-Qc3pol',
'x-fb-trace-id': 'CljOeBm+KuN',
'x-fb-rev': '1006578552',
'x-fb-debug':
'zBrDDX00tJBNVfO5gLPmoFkPYBqbWFMJxgXoCIpcmvP3S6qOwAwqC1fncL823UMqBG02vkO4vKt/
oFfPDNToIw==',
date: 'Thu, 10 Nov 2022 14:02:03 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75407"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 162621 - #[39m11/10/2022, 2:41:37 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +8287581ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916002137779","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11912"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 659376,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AQJo-QplbwEBuIjhZuBhD9W',
'x-fb-trace-id': 'HMG46xJ8TVt',
'x-fb-rev': '1006578552',
'x-fb-debug': 'YStmQuz3LQfXM+9FAOXQG5XncMBZzv0U+
+MZN0dZX99pqY5NVTkv67cGcY5guN+Gv1mKEPGdA+hjF/XRXr93fA==',
date: 'Thu, 10 Nov 2022 14:46:06 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916002137779","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11912"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919434142917","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"60421"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 665429,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AtHEK3Tpo_D-RPF4eul4Ril',
'x-fb-trace-id': 'CyySLKdua1n',
'x-fb-rev': '1006578552',
'x-fb-debug':
'aCmsapywLRoa5Yvn1+qgOzWT3fHWEIqiFj7TV0qjwh1jm7aO2Fk9hmXtj9Mhl7RKCKE2A9iusUT6qQRrUu
QpgQ==',
date: 'Thu, 10 Nov 2022 14:57:20 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919434142917","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"60421"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 162621 - #[39m11/10/2022, 3:07:44 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1567275ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 3:07:46 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1898ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 3:07:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5621ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 3:11:58 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +246492ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 3:15:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१०"#[39m#[38;5;3m
+202883ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१०"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 3:21:50 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +388755ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 3:21:56 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +6564ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 3:22:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7696ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 3:22:05 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +944ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919770081663","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62263"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 716341,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AfDs8fnNNaCPds5NDtLs3M8',
'x-fb-trace-id': 'B9UqqKJ3LmK',
'x-fb-rev': '1006578552',
'x-fb-debug':
'fLrS1+niQBUBwfS8Lj5/sUTrM1hWr6/ULPIiX8t/fYyjQ8cHXkR+49aC1ubWlMom/
X8lhrMKeriDnwmQ9EYDow==',
date: 'Thu, 10 Nov 2022 16:23:58 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919770081663","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62263"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919798103135","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67369"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 717016,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AsYVsXlFKdMdo8t9M8ZtfSH',
'x-fb-trace-id': 'DfZdJUTXa7r',
'x-fb-rev': '1006578552',
'x-fb-debug':
'Q9II5bJTbB9h4dLJv6W1dHz4DVdUYspsmUfjpopX2BP7whDFD0mf92w/4ljV2v2/FICgnSNqFhRX84RNzM
xgPQ==',
date: 'Thu, 10 Nov 2022 16:24:22 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919798103135","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67369"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919436997335","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11852"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 742752,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AR-LsKwXou8ENnaw1__bUlQ',
'x-fb-trace-id': 'FQbXtindgs0',
'x-fb-rev': '1006578975',
'x-fb-debug':
'WepS9vtcrjn8QX6DMsue/yHMnIJfHMiIbSNrY3JqsVj7iePP8mxOx3snKZR0kAk1ZFDRxWK0SsCpvn0Jog
ySdg==',
date: 'Thu, 10 Nov 2022 17:16:32 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919436997335","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11852"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918709114087","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"87904"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 758268,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AK7ambZXAS5PssCM-_oDp-w',
'x-fb-trace-id': 'Ht5973fUQyN',
'x-fb-rev': '1006578975',
'x-fb-debug':
'h/SfXxw9/v2IwwuYqzNJ6Bg6E4ZZ1wC61IhHaPjNNWuyvc0mXi6LQTNQgIGXwlPLJDtvblsOgNXX4Cu7GD
ru3A==',
date: 'Thu, 10 Nov 2022 17:38:34 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918709114087","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"87904"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 162621 - #[39m11/10/2022, 5:45:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mfunction getsubscriptionv2(unknown) does not exist#[39m#[38;5;3m
+8614203ms#[39m
QueryFailedError: function getsubscriptionv2(unknown) does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 5:46:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mfunction getsubscriptionv2(unknown) does not exist#[39m#[38;5;3m
+54847ms#[39m
QueryFailedError: function getsubscriptionv2(unknown) does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 5:47:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mfunction getsubscriptionv2(unknown) does not exist#[39m#[38;5;3m
+43054ms#[39m
QueryFailedError: function getsubscriptionv2(unknown) does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 5:47:27 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mfunction getsubscriptionv2(unknown) does not exist#[39m#[38;5;3m
+9426ms#[39m
QueryFailedError: function getsubscriptionv2(unknown) does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 5:47:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mfunction getsubscriptionv2(unknown) does not exist#[39m#[38;5;3m
+1410ms#[39m
QueryFailedError: function getsubscriptionv2(unknown) does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 5:50:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mfunction getsubscriptionv2(unknown) does not exist#[39m#[38;5;3m
+157511ms#[39m
QueryFailedError: function getsubscriptionv2(unknown) does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 5:50:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mfunction getsubscriptionv2(unknown) does not exist#[39m#[38;5;3m
+6715ms#[39m
QueryFailedError: function getsubscriptionv2(unknown) does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 5:51:31 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mfunction getsubscriptionv2(unknown) does not exist#[39m#[38;5;3m
+78854ms#[39m
QueryFailedError: function getsubscriptionv2(unknown) does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 162621 - #[39m11/10/2022, 5:51:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn p_history.ios_price does not exist#[39m#[38;5;3m +25806ms#[39m
QueryFailedError: column p_history.ios_price does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918459728098","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51997"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 771225,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AlBiKFSmXY0e3DrMoajFg80',
'x-fb-trace-id': 'HbFkLmJAGsI',
'x-fb-rev': '1006578975',
'x-fb-debug':
'BGyRReoT9ek6pzTWlbYzcQ3t35nU+l9NOB1apH+tIBgOBdHBKsWcRA16Ui0RhNCMg/
Gf3N1VRQMEkYh8zeQlEw==',
date: 'Thu, 10 Nov 2022 18:00:18 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918459728098","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51997"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919494643346","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50169"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 784439,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A_lHzyszuj-Uv_o4SU2phkN',
'x-fb-trace-id': 'Es5Ahuojf10',
'x-fb-rev': '1006578975',
'x-fb-debug':
'soPeAJbJAypry+LoODFQ6/49JNNlhRa3I+dfB5xOSOolVpV2Q9oIwG+IO5kD9issKOjQhDXloUOZVyzW60
2MOw==',
date: 'Thu, 10 Nov 2022 18:20:46 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919494643346","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50169"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 170460 - #[39m11/11/2022, 2:06:46 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "২০২২-১১-১১"#[39m#[38;5;3m
+27298335ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "২০২২-১১-১১"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 3:16:14 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4167641ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 3:16:37 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +22552ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 3:16:52 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +15394ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 3:42:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1551344ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 3:46:38 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "২০২২-১১-১১"#[39m#[38;5;3m
+234639ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "২০২২-১১-১১"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 3:46:38 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +313ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9197939","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62155"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 150074,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AprhKunx8K_4xY872P7Zlfp',
'x-fb-trace-id': 'G3jJrXQitEt',
'x-fb-rev': '1006588051',
'x-fb-debug':
'rXeJOyNTneVx8YS9SiyePR0A8yxqWyfabk/Z6gf+w2ufh6JLXxCKBM9sCBsdygR1xRnvK0GrGMiO2kbHq1
sMWw==',
date: 'Fri, 11 Nov 2022 03:56:21 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9197939","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"62155"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 170460 - #[39m11/11/2022, 4:53:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+4023294ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 4:56:19 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +157243ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 4:58:30 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +131506ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 170460 - #[39m11/11/2022, 5:14:03 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +933016ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 5:16:21 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +137822ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 5:18:59 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +157394ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45355"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 241225,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AnCCY1ap71qznth_bSMS1sg',
'x-fb-trace-id': 'GWfgWC0Gl1X',
'x-fb-rev': '1006588051',
'x-fb-debug':
'tbKmqDO0brnHSmq/AgmLXcfC/lvLBIN8tW3ckMRxwtXHX7H9gV+HxaOi7H8VV/6f42lA0AMFulTVVFffUE
zrCQ==',
date: 'Fri, 11 Nov 2022 06:31:56 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45355"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 170460 - #[39m11/11/2022, 6:46:48 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5269810ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 6:47:07 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +18766ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 6:55:20 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +492512ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 6:59:21 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +241596ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 7:01:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +109076ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 7:01:12 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1505ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 7:01:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1086ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 7:01:54 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +40989ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51045"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 264875,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AeYeQAVwn4Tqu3_LrcU8Rim',
'x-fb-trace-id': 'DE/wzseZDpy',
'x-fb-rev': '1006588051',
'x-fb-debug':
'bYfuwHSQB4Rp/3BSclpS26DMRWK6cYjD09cW8CT2AfIznnZqu2MKS4huxzw20rje7U3LeTE40vNIRN5H4X
ALQw==',
date: 'Fri, 11 Nov 2022 07:04:01 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51045"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 170460 - #[39m11/11/2022, 7:05:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +196235ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 7:07:09 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +119026ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 7:10:02 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +172380ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 7:12:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +136555ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91899230054","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67163"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 324945,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AvN8egtBZYJ9ebwEbY0BEkb',
'x-fb-trace-id': 'Hmc3cGIZn/V',
'x-fb-rev': '1006589588',
'x-fb-debug':
'bEBDyZLpbC2Qku1qGMU0jR3Wop/dFddPkVXXJZn1ctWlZQbqXZL0Qvm1iAeSt6aSwg/Zf9y/5/oS/
d47CCZz1w==',
date: 'Fri, 11 Nov 2022 08:52:44 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91899230054","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67163"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 170460 - #[39m11/11/2022, 9:40:31 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "IAS"#[39m#[38;5;3m
+8892480ms#[39m
QueryFailedError: invalid input syntax for type integer: "IAS"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 9:42:19 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "IAS"#[39m#[38;5;3m +108528ms#[39m
QueryFailedError: invalid input syntax for type integer: "IAS"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 9:43:49 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "IAS"#[39m#[38;5;3m +89479ms#[39m
QueryFailedError: invalid input syntax for type integer: "IAS"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918925747354","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65067"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 362831,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AKOapUgs43uyPfCXRDnoGet',
'x-fb-trace-id': 'FXuY4H98mZj',
'x-fb-rev': '1006589588',
'x-fb-debug':
'Pc1OIcpf/v2bhoXK/e8UfXVbDhNJrLT+dsQRogJyfa0NJizG6zskHpwHFgOFlsJhk7LHwiOUkeEhAgyAbd
CMRQ==',
date: 'Fri, 11 Nov 2022 10:04:13 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918925747354","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65067"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 170460 - #[39m11/11/2022, 11:22:14 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5905646ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44039"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 408932,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ABcto-49Nj_lJBgDFdEwbZT',
'x-fb-trace-id': 'AJnrO1VWKSr',
'x-fb-rev': '1006589720',
'x-fb-debug':
'olkRJpGvi3X8C9WftrE1O3i10A//zNu2VKQvEEn801FchDxCQHqZbFc0X+ru8fw4Vk6PQZQVlBwDjd0je3
/hwA==',
date: 'Fri, 11 Nov 2022 11:22:15 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44039"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 170460 - #[39m11/11/2022, 11:48:33 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m
+1578818ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 11:51:08 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +154668ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 11:52:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +62202ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:10:01 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+1070807ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:11:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +81497ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:12:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +83040ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:14:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +86533ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:16:56 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +164233ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:19:19 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +142458ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:24:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +294132ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:25:40 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +86922ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:27:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +94160ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:28:25 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +71070ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:29:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +69205ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:31:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +92386ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:32:11 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +64152ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:37:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +317346ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:39:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +98578ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:40:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +67385ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:45:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "GK"#[39m#[38;5;3m +307105ms#[39m
QueryFailedError: invalid input syntax for type integer: "GK"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 12:47:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "GK"#[39m#[38;5;3m +144099ms#[39m
QueryFailedError: invalid input syntax for type integer: "GK"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 1:03:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +927903ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 1:05:01 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "upsc"#[39m#[38;5;3m
+108085ms#[39m
QueryFailedError: invalid input syntax for type integer: "upsc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 170460 - #[39m11/11/2022, 1:09:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "upsc"#[39m#[38;5;3m
+241052ms#[39m
QueryFailedError: invalid input syntax for type integer: "upsc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 2:00:41 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+2442650ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 2:01:54 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+73320ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917300822922","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"13844"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 57817,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AgJ9n9Ixp89Nu6eFxJNgMMT',
'x-fb-trace-id': 'H/diZl2+d5Q',
'x-fb-rev': '1006589720',
'x-fb-debug':
'+BcUF+BwBnyId9lZXoxiUDOIif1w+jDKh3kFwAOswC4tN9domtUAQajz65bhV3x/fMwGqLZpR/
Qa4aiHHa+7VA==',
date: 'Fri, 11 Nov 2022 14:34:09 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917300822922","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"13844"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/11/2022, 2:47:23 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2728731ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918789490606","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29688"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 136110,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AjLwtzahFr6ZxRQ9pOWV0Cz',
'x-fb-trace-id': 'CdO5jQPiXt5',
'x-fb-rev': '1006590198',
'x-fb-debug':
'7Ouu+LIbRImNUccbUDkZb1xPwqqcgJsxPf6Whw5P2LvQ8grQZEH3Ky0WeByL2ay4kZ+S4/
bKWTEgsUdnlYL5xQ==',
date: 'Fri, 11 Nov 2022 16:33:49 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918789490606","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29688"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/11/2022, 4:48:32 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +7268889ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919022933397","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"87549"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 157230,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A84E2fiSNwpz_VrAbRnxuKH',
'x-fb-trace-id': 'HOs+N12CcGl',
'x-fb-rev': '1006590198',
'x-fb-debug':
'FL8NGE1HxUUXTV0sUx8abi6r5nfLhMfIx1Z06Es29T6eG8yXh2BmFkolKgp2F0XnPVdT0AgyxUOyTkp3jf
PbkQ==',
date: 'Fri, 11 Nov 2022 17:15:48 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919022933397","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"87549"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/11/2022, 5:44:48 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+3375657ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917666055102","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56009"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 188491,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AjrnAJ7b6GK5iSP5_YniDEm',
'x-fb-trace-id': 'HWlmKu7+lae',
'x-fb-rev': '1006590198',
'x-fb-debug':
'FoNqpzqpa6u6g+y8fgrz0awOZHA/NI6IhKdJPNHAC9SyEsbioykupQsqG0ljtw7Myzs9fpotH5h2rt6dIO
4Xkg==',
date: 'Fri, 11 Nov 2022 18:51:30 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917666055102","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56009"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917666055102","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89824"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 189016,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AIBYK2RNxsddGcvV0Qzluw-',
'x-fb-trace-id': 'GgK+EKVsbXd',
'x-fb-rev': '1006590198',
'x-fb-debug':
'8hGthAKITNp2yoaOlDo6llPt3UFk0eM76owAJWEYReiYO0/5VAc1geEHtxeHgnECpBlLS6x/
ItaHWElUYvjCpQ==',
date: 'Fri, 11 Nov 2022 18:52:02 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917666055102","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89824"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/11/2022, 6:52:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१२"#[39m#[38;5;3m
+4048401ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१२"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 183457 - #[39m11/11/2022, 7:46:40 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m
+3264203ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 7:49:53 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +192252ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 7:53:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +200440ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 7:55:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +152093ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 7:57:26 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +101028ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:00:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +160616ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:02:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +113684ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:12:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +646642ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:14:33 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +106288ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:16:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +143635ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:19:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +137306ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:21:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +121401ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:23:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +131865ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/11/2022, 8:25:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +99943ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 3:18:35 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +24807338ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 3:41:31 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1376325ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919161411","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49123"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 204
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 345387,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 204\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 204,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ARujhHPrga6S3Kyp1aUNm8c',
'x-fb-trace-id': 'DtcmuBj+c0v',
'x-fb-rev': '1006596920',
'x-fb-debug':
'KHbcGr8NlqX1dfo3PjoiBbCUBz4NYIpzsImrAuULzv+6ClRnLMF5yhMPM/htEPF81dJr2DKQMXc5fYmAXq
WhAg==',
date: 'Sat, 12 Nov 2022 03:42:58 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919161411","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49123"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 204\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 183457 - #[39m11/12/2022, 5:15:52 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "name" violates not-null constraint#[39m#[38;5;3m
+5660723ms#[39m
QueryFailedError: null value in column "name" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 5:16:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "name" violates not-null constraint#[39m#[38;5;3m
+50143ms#[39m
QueryFailedError: null value in column "name" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 5:17:26 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "name" violates not-null constraint#[39m#[38;5;3m
+43706ms#[39m
QueryFailedError: null value in column "name" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 6:14:23 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+3417049ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 7:17:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+3767213ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 7:24:42 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +452259ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 7:48:43 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m
+1440754ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 7:52:54 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +250806ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 7:57:25 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +270795ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 7:59:11 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +106513ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 10:01:07 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m
+7316159ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 10:10:55 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +587802ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 10:12:14 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +78823ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919546060636","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94900"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 680163,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A1DDlou_lXsT3nGTpjjpAPx',
'x-fb-trace-id': 'EFWEvbQfcVp',
'x-fb-rev': '1006598027',
'x-fb-debug':
'pMDw3vf/HHdeTXM9xGutDP76E5lLattUOz08ppxh1mYNCn9S2iAn8AtjwxzHulZIELxvNlQYyX1lGAaoYH
GqWQ==',
date: 'Sat, 12 Nov 2022 10:28:58 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919546060636","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94900"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/12/2022, 10:36:16 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1442230ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80607"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 720624,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AExG9bI__PkajXT-vhfEabk',
'x-fb-trace-id': 'CYv6o92ogrP',
'x-fb-rev': '1006598027',
'x-fb-debug':
'1SrsGQbt1UTLW2R8jYtyH+tbrBiJ5qd8Pw8nlc8Ji4mOfs3p3DmZ6mJco68gx5Ms8Kj+5wBRSPv+tSJ3ib
BWfw==',
date: 'Sat, 12 Nov 2022 10:57:56 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80607"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"18148"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 720806,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aly5BVriTzXZS3iFJf--0rC',
'x-fb-trace-id': 'HdbSaczTN4U',
'x-fb-rev': '1006598027',
'x-fb-debug':
'bdxbZN4wOQeXA1WZ39tcMUBY/eXaISsPu4y11LdWqI5NjrPwuDb5YdvJV9n4IJhWchsSMSRSo2EcUDfPqG
fR8g==',
date: 'Sat, 12 Nov 2022 10:58:14 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"18148"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61590"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 721088,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ARc6Eal_BliC-6NueW2P8eX',
'x-fb-trace-id': 'Ct44VzuR8S7',
'x-fb-rev': '1006598027',
'x-fb-debug':
'QDbxZyqDRWESWTYHTLWTKTo40idfkDlFaPOpDAFozEKXPKZdHNW8kED/0/Jpc4+n1C0AHAUlMLvbnTEDGO
Uvjw==',
date: 'Sat, 12 Nov 2022 10:58:30 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61590"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"13244"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 721813,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AxuVF6V-PZrUDvCdMGW1L8q',
'x-fb-trace-id': 'Ha/Wp20+nBB',
'x-fb-rev': '1006598027',
'x-fb-debug':
'oguFqvZAD2Imw7f1rZ7xNEjOnC9bKrAksF1cBlEFggLrbOnGBvAyQoA1gOssmDSWMLk75jFP45Wf+Bfa8G
qrFA==',
date: 'Sat, 12 Nov 2022 10:59:51 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"13244"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72527"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 722799,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AsNjdNUZDyfAJLLqvBX1HXl',
'x-fb-trace-id': 'HXc3TXeCR1U',
'x-fb-rev': '1006598027',
'x-fb-debug':
'7DRgwXPXZJ1aqUNjLaxtzvDYfonytCmGHULFH7f8wgdLq14Nc5WMoUp7+3hxuDaWzTzcalz1OE7FMFl3OH
UVyA==',
date: 'Sat, 12 Nov 2022 11:00:38 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72527"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90737"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 202
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 723430,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 202,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AlA-vJb-5fK9DF2ECT_4N_1',
'x-fb-trace-id': 'GqxQPmJaDJa',
'x-fb-rev': '1006598027',
'x-fb-debug':
'Rz71wYwycs3bP6tYCj/DBiRKQDnAtBmzTfjTmtVXNuc22OiNOg9veJGGHr9a9BeaTW+APGL5Y78tDgdvfM
d1WQ==',
date: 'Sat, 12 Nov 2022 11:01:17 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9187970","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90737"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 202\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/12/2022, 11:15:02 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2325311ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 11:20:57 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१२"#[39m#[38;5;3m
+355552ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१२"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 11:58:32 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2254741ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 11:58:48 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +16016ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 11:58:51 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2930ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 11:58:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1795ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 1:48:19 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m
+6566353ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 1:50:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +148264ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917008789538","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39627"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 851623,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ar9sv2Lo8CLiK3IgzcEM0D2',
'x-fb-trace-id': 'GVL8X8ziuFN',
'x-fb-rev': '1006598047',
'x-fb-debug':
'0o1WoUI1nIPtCqrIWF5mutxfjO09L5E+GOSeFOD4IVYhEytFeWbShvT4w8kibaFvcaQ+YmbZU49+H4/5Cg
02/g==',
date: 'Sat, 12 Nov 2022 13:55:11 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917008789538","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39627"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/12/2022, 2:02:46 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +718544ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:11:24 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +518569ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:13:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +97407ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:14:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +73340ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:16:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +123165ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:21:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +299369ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:24:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +169318ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:25:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +98432ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:27:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +74563ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919801029387","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75727"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 884741,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ABA-cVlp2cdq6X4nQCWYFdP',
'x-fb-trace-id': 'AKRW/chlKxN',
'x-fb-rev': '1006598047',
'x-fb-debug':
'O104Jk8QGThIwyENzbAozXqoemReEAitKr4K9I6C5Oe0lEA5MCqfEzK5QzmoobxgqvNKL6GBdaMeS/
EHRmQihA==',
date: 'Sat, 12 Nov 2022 14:29:02 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919801029387","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75727"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/12/2022, 2:29:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +128198ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:35:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +364797ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:46:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +660816ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917408547418","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80677"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 903831,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aw9-kUOajv_QN-Et_hfI2ad',
'x-fb-trace-id': 'ASXPTt9nt6I',
'x-fb-rev': '1006598047',
'x-fb-debug':
'Bl+LLteSJpBCr+u4TGyVGmLE5nFpGZ8pOJfT5rY8rBz9ukp0dWiqn19ZvaWzi1gNLuJY9k63E7ghHwCz/
zhAGQ==',
date: 'Sat, 12 Nov 2022 14:50:54 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917408547418","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80677"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/12/2022, 2:53:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +453615ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:55:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +119382ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 2:57:11 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +83856ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 3:00:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +216053ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 3:07:50 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +423339ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 3:13:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +349011ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919971066476","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"27631"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 955723,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AUzV3ac5OM6ZbHbewq85eWF',
'x-fb-trace-id': 'CZFZMAQn2IJ',
'x-fb-rev': '1006598099',
'x-fb-debug':
's8+b0xM1l76b3eDZAVjniY4n01SSU2UkuRzWhQZ9YqekxyqoGKMf5E906qkSKVyxhGL8kMY9btUmNUZ4Wr
C5ww==',
date: 'Sat, 12 Nov 2022 16:02:47 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919971066476","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"27631"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919971066476","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65309"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 956412,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AitBbBtijOzKv_b0miNx1QL',
'x-fb-trace-id': 'DBoHnTreU0c',
'x-fb-rev': '1006598099',
'x-fb-debug':
'2s9Z/GUMv7gwwifDk+rVsuDN9ViZ2S10jS/qSe4z2SK/4uC3IrsYmKW7TmNBr+aQtki91PuEepqXtF1HbB
ybTA==',
date: 'Sat, 12 Nov 2022 16:03:49 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919971066476","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65309"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/12/2022, 4:43:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5379358ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918538859113","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"13762"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 998505,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AKNZHoIWmYizWqUtkiyzLHL',
'x-fb-trace-id': 'HkuexsfReVA',
'x-fb-rev': '1006598099',
'x-fb-debug':
'MLfqJyPwbBwt0O1xnBe75/g73pXCrEO//ZEV412HA+JuRPBuLengDZ0djNr9VCznN7D8Ono6/7N8MWug0X
/Btg==',
date: 'Sat, 12 Nov 2022 17:00:57 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918538859113","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"13762"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 183457 - #[39m11/12/2022, 5:48:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m
+3915613ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 5:49:56 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +82120ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 5:52:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +136253ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 5:53:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +81562ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 183457 - #[39m11/12/2022, 5:55:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +101628ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 5:56:43 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mstructure of query does not match function result type#[39m#[38;5;3m
+51831ms#[39m
QueryFailedError: structure of query does not match function result type
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 5:57:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +27309ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 5:58:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +66317ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 5:59:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +77194ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 6:04:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m +300613ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 6:14:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +596133ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 6:16:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +119979ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 6:23:38 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +428018ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 6:26:01 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +143136ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 6:29:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +195366ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/12/2022, 6:51:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१३"#[39m#[38;5;3m
+1337161ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१३"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918092355688","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80853"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 120582,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AntzQuz1b5kvaBFRSkMhLc0',
'x-fb-trace-id': 'HQJoK5IXtHA',
'x-fb-rev': '1006598334',
'x-fb-debug':
'MsMhgqETYQcq+k8VmIii9giMOiH3GGqPoXg+gC2UlFw+VOM5HiuOXWMaJnJD0Zct2YtTl1Fy3CuhvU/
FbMpBAA==',
date: 'Sun, 13 Nov 2022 02:30:34 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918092355688","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80853"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918092355688","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26932"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 128077,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ae8ZJsHvLRpzD3VyjJZqKbq',
'x-fb-trace-id': 'AwWs+oCZpMs',
'x-fb-rev': '1006598334',
'x-fb-debug':
'KegOUILOaaXjPXprduUYNn1yuByVKURi9UUlcgqLQPjGtAv7P8DyfTm/7sqL7yAqRfOih0PP9+V6tQ6SSf
tQjw==',
date: 'Sun, 13 Nov 2022 02:31:14 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918092355688","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26932"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918092355698","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90911"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 128262,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AXZIbDvreMgPFqhCfFUDZuw',
'x-fb-trace-id': 'GOrGZkSbIdr',
'x-fb-rev': '1006598334',
'x-fb-debug':
'LVpE/KCXjoNKcHj/y7uSztb+QoJcq44GEYnLfku/Pp3jmyXQu/SMtZhgwIb/s5iN8hQR2DcjUF+8qWRpEg
cAdg==',
date: 'Sun, 13 Nov 2022 02:31:30 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918092355698","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"90911"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 2:31:38 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +27604357ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919398011510","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"87776"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 130999,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AN55fr5OQljuf4xiXvn23rw',
'x-fb-trace-id': 'Hn+PH3EqpPd',
'x-fb-rev': '1006598334',
'x-fb-debug':
'pLsnL8le4BTfrNQiFOye/LkZm81K5l6AUxVlIoaf6bmq/qJtglc4xG9Yy3Nq1azxsZPLjwR0akAUQyaQ0S
r48A==',
date: 'Sun, 13 Nov 2022 02:40:45 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919398011510","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"87776"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919398011517","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"27502"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 131103,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Av-f_REZ2b9YK9u6lRatpwc',
'x-fb-trace-id': 'AsP9m1dyoE0',
'x-fb-rev': '1006598334',
'x-fb-debug':
'btxhfjYMjeLVR+c5u2d3YM/Rql8dkg8tpJY1bU7ALOJ1hJQ5VjR3jJ5AxYNQQNF/bjX4Mucm/
hB90YX5q4F8Jw==',
date: 'Sun, 13 Nov 2022 02:41:01 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919398011517","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"27502"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 2:44:12 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +753982ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 2:44:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +751ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 2:44:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5372ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 2:44:20 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1126ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309955325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"60685"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 268634,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A3xWqtEbkQLR-OUh09zCHG1',
'x-fb-trace-id': 'D4A4rlAjtPM',
'x-fb-rev': '1006598365',
'x-fb-debug':
'x7GzX5pO4h6IKuYui7DXb0teLsOnUeRN+ZdWRBxybLXROXSq8rUBxJr81Nh/DD3qZq3/4KLxt/
K2NrJz5IkDAw==',
date: 'Sun, 13 Nov 2022 04:41:23 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309955325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"60685"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309955325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91915"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 269105,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AWNTNxasZUKfrXXf178KlWy',
'x-fb-trace-id': 'EduS4U8eihs',
'x-fb-rev': '1006598365',
'x-fb-debug':
'ERnrjw5KPsud0bQSRIBnizCrMC8abNp4/ONGaa5TaDoB+HMAwE/OHmU2n+NaIp6vFFteBQcHMVDSmPaB0Z
4A0A==',
date: 'Sun, 13 Nov 2022 04:41:59 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309955325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91915"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309955325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31703"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 269828,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AaaJYN7CjfQH58fOfcJEV5-',
'x-fb-trace-id': 'CRep0BQt9A5',
'x-fb-rev': '1006598365',
'x-fb-debug':
'5RWyEEV76TvH0XJLecBERyoE2NSBqFkqEcr71HnSG/l2+Ku4YVlfX1DWtfI28ZhVwXAZ9pPGEgeJMdKffQ
hn7A==',
date: 'Sun, 13 Nov 2022 04:42:48 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309955325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31703"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309955325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39009"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 270593,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A6WzX6cRFn5UCekLgQEp-fx',
'x-fb-trace-id': 'F/vZmUeeqQk',
'x-fb-rev': '1006598365',
'x-fb-debug':
'j8sfQ6PWg2h+qB1mkXzQ8zhP27Q9OIkz6wm+WiKKq6uJL+4ldyidf6FtmSO8H8UuigFutUZT2izWoYkWKP
zV1w==',
date: 'Sun, 13 Nov 2022 04:43:54 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309955325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"39009"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918800747141","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29018"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 285681,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ASgEnEEVskAahujPivTkL7G',
'x-fb-trace-id': 'ErJdxfN3Kq8',
'x-fb-rev': '1006598365',
'x-fb-debug':
'VVLI1e5JdiJMRRmDwOo0VGaZgad6fXaDYZhDgCE93+IN5lapB1SN40FII9PERe+TyDVm+T1xRSvxqmM+dR
KhZg==',
date: 'Sun, 13 Nov 2022 05:13:32 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918800747141","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29018"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 5:36:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +10353730ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:15:41 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2327966ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:15:46 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +4276ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:15:57 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +11577ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91634920740","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70081"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 329867,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ApSsulKYcQzse9FuJtAcBGU',
'x-fb-trace-id': 'GpuAJ6qyx8l',
'x-fb-rev': '1006598385',
'x-fb-debug':
'/CiP8djP4aRP0kHaxiY1LLUZ85qeRzPKAabEkvgIrXQmVdxUFm4GuTgFkpL/Hf2xNrpJF7NtdPQ1SiGOL+
LpCQ==',
date: 'Sun, 13 Nov 2022 06:22:47 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91634920740","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70081"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91639423740","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"78733"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 330081,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AgWFBRoH0KJ9m8o-B0Y3k_d',
'x-fb-trace-id': 'G2k5N9iLmx8',
'x-fb-rev': '1006598385',
'x-fb-debug':
'7EON1vXwiZ/+7aqwv/OI8L9nvjvxTGgvV9EYdmmtZuaq8gKVboIhJ7CeIt/6gVvG8ZGdi5DvUeuqW3rnps
0rIQ==',
date: 'Sun, 13 Nov 2022 06:23:02 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91639423740","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"78733"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91639423740","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75436"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 330321,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AHyuBBYlCxou7FD4F37DUKZ',
'x-fb-trace-id': 'AKXsco5o6dI',
'x-fb-rev': '1006598385',
'x-fb-debug':
'ZVRnYHOMLFsJe8wfI+xGuvR+bXo0myxMw3k8EYe6o57K8RS0pJ1jfg9m1Jb41RLaJNThGi7m6nJRcxJXBQ
WfFQ==',
date: 'Sun, 13 Nov 2022 06:23:15 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91639423740","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"75436"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 7:56:56 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१३"#[39m#[38;5;3m
+6058520ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१३"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918052025484","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81791"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 444459,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AKt_N8mX_F_I-g2xe5FyOV0',
'x-fb-trace-id': 'F1/ppqB+yo0',
'x-fb-rev': '1006598443',
'x-fb-debug':
'Ll9cgjyN8rsRhSlW+jhZrlUAFYM7lbTxzvzOXUoJtB9VygZVoOTtfqdO6kj02Kz+ZM4JhTyDgmbCLDfGK+
Obsw==',
date: 'Sun, 13 Nov 2022 09:11:28 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918052025484","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81791"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 10:21:38 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"PK_1a2e982cde7f9bfd56995ac2559"#[39m#[38;5;3m +8682763ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"PK_1a2e982cde7f9bfd56995ac2559"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 10:45:23 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "ssc"#[39m#[38;5;3m
+1424501ms#[39m
QueryFailedError: invalid input syntax for type integer: "ssc"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 10:46:54 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +91457ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 10:50:39 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +224879ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 10:52:40 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +120536ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 10:54:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +93099ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 10:56:01 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +108075ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 10:59:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +197305ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:00:48 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +90248ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:05:56 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +307305ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:07:56 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +119731ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:10:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +146940ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:11:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +90214ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:20:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +487403ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:34:50 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +889523ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:40:44 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +354637ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:41:59 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +75168ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:43:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +75940ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:46:47 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +211874ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:51:08 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+261093ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9199372940","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"97669"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 205
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 541767,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 205,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AbnGv62VXsz5MBXEmgSdp9n',
'x-fb-trace-id': 'GGYw93Nc+s4',
'x-fb-rev': '1006598507',
'x-fb-debug':
'ZM1NMTVCbK2H9QOpk2XqvRZNPz6NvwPAoaWMi0V6mHQdWD+uhEY9oWG18wLKaBsg+Wyk1e0V7ior0RZYAU
kvPQ==',
date: 'Sun, 13 Nov 2022 12:06:20 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9199372940","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"97669"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9199372940","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"93805"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 205
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 542040,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 205,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A88xk-yMRw9kJE9s5Oj1p9O',
'x-fb-trace-id': 'HgQDKHmSDfJ',
'x-fb-rev': '1006598507',
'x-fb-debug':
'k+0QpWPzcKDBko/jbiVxafpc6PiUM/zNyRUe1uUGNQbc7MSy4H/zFNmVPm/mcGpNpHtTrHELtRP+s6k3sr
lL/Q==',
date: 'Sun, 13 Nov 2022 12:06:52 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9199372940","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"93805"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919937294074","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15438"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 542524,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ASVWpb1PKfhhcoYZdnmfTUX',
'x-fb-trace-id': 'Eu8Mpotd61B',
'x-fb-rev': '1006598507',
'x-fb-debug':
'06kYy2S0Km5KfP5VOC7U4/huN7Z39+Qnb8flPXLVKzy2Fj8o79Y5yVRiGhvcaA8CDp4UrLe6iat2SvD1oT
hC4w==',
date: 'Sun, 13 Nov 2022 12:08:02 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919937294074","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15438"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919937294074","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26794"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 542935,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AC01xTpYf7e5bhgxAdMf2_K',
'x-fb-trace-id': 'HhX30TwaLGS',
'x-fb-rev': '1006598507',
'x-fb-debug':
'xnakiru+dn3PfvgcByYrOTvNM7cru5lu6W7wFpkb+2VYw2wtQVlTtnJTqAnnnYSbjEjwjwVxRSCBOmG6wM
V+IQ==',
date: 'Sun, 13 Nov 2022 12:08:41 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919937294074","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26794"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919937294074","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29315"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 543263,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AgiGExXMpOQ0P9pR9Kar-le',
'x-fb-trace-id': 'DUvyhk3qx8S',
'x-fb-rev': '1006598507',
'x-fb-debug':
'lX12ioHtglLWzS99MRPxQDHxTbFSeIbL+VoTK8yTh8tp4GJZdASe36vpTDKMBCizUXQQ7I8xxoay6GgmQB
E3JA==',
date: 'Sun, 13 Nov 2022 12:09:21 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919937294074","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29315"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918744062535","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52001"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 547742,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'APlzihg9wW1swjwQKHJakcE',
'x-fb-trace-id': 'HBiygflgiOe',
'x-fb-rev': '1006598507',
'x-fb-debug':
'NAzyBaug+ufDA4omH13DpvAufPl4gs5tkt1d7kvLXIgrYOjusIgQS4GzN5KroXzXv+6YBG404nNWiRq3ZO
h8UQ==',
date: 'Sun, 13 Nov 2022 12:16:13 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918744062535","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52001"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919440825392","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45695"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 549456,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AtbtaTpWI82_Vz1nvO_Ffpo',
'x-fb-trace-id': 'Dz6NN0oB72X',
'x-fb-rev': '1006598507',
'x-fb-debug':
'U4ZyaJ6F3UH7nxe7ji/p5XpVt+tnfy++SEtcM/0xf9H126/YwqQl4nUoECKBx+PZ0mVnmGsD1lI2wE2hdl
ojIw==',
date: 'Sun, 13 Nov 2022 12:17:58 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919440825392","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45695"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919440825392","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"74378"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 549863,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AOf3ov0vxDJfbVC8T2pFe4i',
'x-fb-trace-id': 'AYilUmxWoBW',
'x-fb-rev': '1006598507',
'x-fb-debug':
'8ZvwzDaR0VjIxzkUvzVQqekrDT6crjkLdccHGIkFDcDYeout3nGkAJ3rsSaZ7P01znvoYoMNdxqdi9JPzK
o2rg==',
date: 'Sun, 13 Nov 2022 12:18:37 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919440825392","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"74378"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 12:44:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3218721ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 1:53:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +4137708ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917618391386","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"68259"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 624478,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AlmHBjq6SHEOS9hQMl36FCg',
'x-fb-trace-id': 'ELC1z6Msr96',
'x-fb-rev': '1006598563',
'x-fb-debug':
'iNxVkI5zo5le8qehiL2GWdg6mlXcvuhM+BjcEICEpH16rez4uLwK/Akx37gBhU0D64Be+WLvirtUxYW8eb
/QTg==',
date: 'Sun, 13 Nov 2022 14:32:04 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917618391386","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"68259"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 2:40:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+2782005ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 2:42:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +130889ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 2:43:37 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +78876ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 2:48:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +285763ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919423527223","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26888"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 639509,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AmaeZ9xlIwsDwriApqQItZb',
'x-fb-trace-id': 'A1ljttoi9ok',
'x-fb-rev': '1006598563',
'x-fb-debug':
'GNKdJToBmek53H0CX0irTMMOPu/2OUSady2+uwvk8JC3bYzC2j5/mtv04io6tR5FXrH5umgHB3STD4svMt
K8jg==',
date: 'Sun, 13 Nov 2022 14:49:20 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919423527223","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26888"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 5:56:11 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+11268594ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 5:57:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56647ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 5:58:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +70708ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 5:59:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +62369ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:00:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +69000ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:01:48 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+78458ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:03:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +83604ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:04:11 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +58988ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:05:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +67675ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:06:32 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +73192ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:07:48 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +76504ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:09:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +74726ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:10:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +73378ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:11:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +57830ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:12:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +61254ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:13:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +66232ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:14:19 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +57358ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:16:32 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +133132ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:18:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +95938ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:19:27 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +79493ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:21:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +92754ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:23:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +133875ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:24:42 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +87826ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917006731284","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49857"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 764589,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ANtnuUgsGfm6wCfpYVFXv3N',
'x-fb-trace-id': 'C9wqEjyllLg',
'x-fb-rev': '1006598632',
'x-fb-debug':
'XiKN5ZHP4Ryxm9FNU28B+2tbn2z+co+hvr0uKBqdY8apDMwiCfN0zfPSxRY8c79HjvViEbFujBWTbo28zi
8huA==',
date: 'Sun, 13 Nov 2022 18:34:06 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917006731284","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49857"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 6:37:23 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+760917ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918440037243","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19591"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 772670,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A7vjoFOXBChtmfTRBrx8hgd',
'x-fb-trace-id': 'BwLDfPuPTQw',
'x-fb-rev': '1006598632',
'x-fb-debug':
'tbpyDgP1zRDJnqqC+g+RL28541vMAmHJtX1ef3+otC+M35OdKrjMeQCs3jZ/NONDYrHq0liuEmevyaGWl/
5afw==',
date: 'Sun, 13 Nov 2022 18:53:59 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918440037243","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19591"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 193881 - #[39m11/13/2022, 6:58:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+1251292ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 6:59:18 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +63654ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 193881 - #[39m11/13/2022, 7:00:53 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +95312ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:02:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +70663ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:03:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +62130ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:04:01 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +55688ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:05:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +88809ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:06:44 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +73400ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:08:33 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +108980ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:10:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +94300ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:11:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +61725ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:12:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +58387ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:13:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +83255ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:14:29 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +58596ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:15:31 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +61872ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:17:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +106639ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:18:43 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +86007ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:20:48 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +124326ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:23:27 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +159700ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:26:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +168103ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:33:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +432598ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:35:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +108784ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:36:19 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +62262ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:37:36 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +76578ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:38:29 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +53379ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:39:58 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +88769ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 7:40:55 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56825ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 193881 - #[39m11/13/2022, 11:54:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +15185114ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919022273927","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84114"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1102,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A6ydolJ4FZEypZfECOWjGIM',
'x-fb-trace-id': 'CKKrzl8iEnb',
'x-fb-rev': '1006598862',
'x-fb-debug':
'aCiEz2YkQHxF6vRryGCFKSy1epjjADd+GRwWtbl2TpqYxYbBhAh+tvwgylQ4Bw3ysrCqSNUx8n6Mw1M/
vSafGA==',
date: 'Mon, 14 Nov 2022 00:55:28 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919022273927","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84114"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 209754 - #[39m11/14/2022, 2:06:18 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +2096141ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 4:31:01 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१४"#[39m#[38;5;3m
+8682928ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१४"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 209754 - #[39m11/14/2022, 5:21:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2998968ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 9:04:45 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१४"#[39m#[38;5;3m
+13424394ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१४"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 9:11:28 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +403227ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919363303065","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49607"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 227024,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AK3Gxa-QZLBAs8Xc-e5SiGI',
'x-fb-trace-id': 'G+f5TqnS9Go',
'x-fb-rev': '1006599243',
'x-fb-debug':
'hstbPBOodEAI8RLgnIo0fHZaY4mDjtO+28tF7qmCkaDHL4oeaf8Xy9WXicTr0MBxYVHk91JVVuIEnUNF32
F2mA==',
date: 'Mon, 14 Nov 2022 11:08:53 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919363303065","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49607"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919263303065","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91585"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 227294,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AcWNbODhBkoIaiOAiNkXBmn',
'x-fb-trace-id': 'H9rJ7MyqGaB',
'x-fb-rev': '1006599243',
'x-fb-debug':
'MoAerBt1ZTPTVW8OoHM9KImHyuhayosx3PhhlChJG/ZdO8xOYCJWPSuIC4qT0RWB2FAh+iNAMzzQi/
hI15ehYQ==',
date: 'Mon, 14 Nov 2022 11:09:53 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919263303065","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"91585"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9175","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61048"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 199
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 325640,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 199,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AccpMBI7It-Cseozmxk1FSp',
'x-fb-trace-id': 'BsF7mDWq4Xh',
'x-fb-rev': '1006599348',
'x-fb-debug':
'+jwTPA1U9OT+j4zJZgtk5uB9+XVmduzGQtaZm/3Hu26UIpXW2Nwt9Ce0yODJ1dh09ilJDlHb9nqi1h9Yrt
cxJg==',
date: 'Mon, 14 Nov 2022 13:15:17 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9175","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61048"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 209754 - #[39m11/14/2022, 1:30:44 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+15556322ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:31:55 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +70633ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:34:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +127367ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:35:20 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +77916ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:38:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +169359ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:39:23 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +73711ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:41:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +111211ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:42:41 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +86496ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:43:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +76264ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:44:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +60014ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:46:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +77465ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:48:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +121823ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:49:23 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +66571ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919412751522","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"78724"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 347875,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aymje8By9WeSazjE596ImxZ',
'x-fb-trace-id': 'Cj6xhTVchmb',
'x-fb-rev': '1006599348',
'x-fb-debug':
'9FpPrttCiIkILSiy0GHIM9OjrdlL6wIjSwJmxJHvvP0kJVJWdMw5w0pEa+5tZPjcu5gupqBjCD2tVM6Jfn
lIBQ==',
date: 'Mon, 14 Nov 2022 13:50:19 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919412751522","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"78724"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 209754 - #[39m11/14/2022, 1:55:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +349534ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:55:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1259ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:55:20 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +6131ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:58:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +173798ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 1:59:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +68251ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:00:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +71638ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:02:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +101843ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:03:25 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +69740ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:06:33 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +187518ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:08:46 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +133503ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:09:43 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56751ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:10:43 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +60125ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:11:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56089ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:12:41 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +62366ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:13:59 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +77558ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:19:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +347754ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:21:33 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +106549ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:23:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +114864ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:27:41 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +252737ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:29:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +118301ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:30:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +59471ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:32:05 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +86048ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:33:01 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56459ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:34:32 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +90957ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:46:58 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +746081ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:48:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +82393ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:49:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +50990ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:50:19 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +67824ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:50:44 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +24693ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:51:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +30916ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:52:20 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +65348ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:56:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +249706ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:57:25 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +55358ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:58:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +55995ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 2:59:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +52680ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:00:31 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +77225ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:03:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +162234ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:04:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +50455ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:05:11 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +66601ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:06:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +88185ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:06:40 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1587ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:07:32 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +51981ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:10:54 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +201140ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:12:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +69592ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:12:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +49183ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:14:24 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +91185ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:15:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +44978ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:15:59 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +50348ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 3:49:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "২০২২-১১-১৪"#[39m#[38;5;3m
+1988750ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "২০২২-১১-১৪"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918105216349","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80990"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 446964,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AzWsBLeMpxHzcGuscnFYUmy',
'x-fb-trace-id': 'ALbI55rA8qy',
'x-fb-rev': '1006599996',
'x-fb-debug':
'0aaRuK/b6aY/z0rMrDMcZqZ4841wzf/76folN6+67vNJ4dvg+OpnZWdJIpYa7O6SmqytHOYGTnUucNgtDK
9c3w==',
date: 'Mon, 14 Nov 2022 16:17:12 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918105216349","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"80990"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918767383153","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"16828"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 453835,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Af3TaQAd0i2jR_fj2wFrN_q',
'x-fb-trace-id': 'A+sPD+h+Pb7',
'x-fb-rev': '1006599996',
'x-fb-debug':
'MvV3eyiU0NunIOO4i5v02jJ/N5tKpVBgbYxGd+hA6XzTokoREmCoCuuRlhbYnp6wbLl8GmTxjH7jlJ3Fxs
78sw==',
date: 'Mon, 14 Nov 2022 16:33:03 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918767383153","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"16828"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 209754 - #[39m11/14/2022, 4:33:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +2647523ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 4:55:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1357180ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:10:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +860832ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +171202ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1303ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1676ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +705ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +355ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +356ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +417ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:09 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +189ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +215ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 209754 - #[39m11/14/2022, 5:13:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +37ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918434668883","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54187"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 543559,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AG_MC09GN8iugc-LLNZwSig',
'x-fb-trace-id': 'D/+uvX2oDsR',
'x-fb-rev': '1006599996',
'x-fb-debug':
'mppFcJnJlSJinvrfMoIJtArgNUPVR+jleTE5aXJwqpXhhHNgmAq23E4wswRFYz9xaiko4TX76hAcuJv3T+
/4PQ==',
date: 'Mon, 14 Nov 2022 17:21:49 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918434668883","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54187"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919861573620","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11434"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 569261,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AcXSTtbKr9K76HmFC0WO2RR',
'x-fb-trace-id': 'Ht5x/B5UCaA',
'x-fb-rev': '1006599996',
'x-fb-debug':
'XQ76MO48oY1Fj51PRAyHydvjuV7ucU3EjBxjLxi15z4V1Q1uyZV7z5/7EWEzXi5Oy17egSILuT5SaJ+zKe
7yXA==',
date: 'Mon, 14 Nov 2022 18:35:48 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919861573620","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11434"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 209754 - #[39m11/14/2022, 6:45:25 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +5535129ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919057548025","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71678"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 585291,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AuDNJp9T2HsB5Gndgp0L6ut',
'x-fb-trace-id': 'BnKvsEui7k3',
'x-fb-rev': '1006600671',
'x-fb-debug':
'ytwsLvJ66YpksZ5bSjk3UUSSSmCBV8B0etdMOrYwQ5JKSFk9Cyyxpy0KZlEKz2/vdejJI345e+H0EU2hfY
JZlg==',
date: 'Mon, 14 Nov 2022 19:40:49 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919057548025","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"71678"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 16643,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AIbZAOFSmhzcpcOel6Fkh7k',
'x-fb-trace-id': 'BismDf3FpVw',
'x-fb-rev': '1006602456',
'x-fb-debug':
'xo8eXn543tQB3JYDSvgh2bjqIJyCRaFkokKfriQcDQPQ9l4ZNZLIImAeU290A5Wh7Vz9tZFYQlVbw2MVoV
0COQ==',
date: 'Tue, 15 Nov 2022 00:18:45 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919341184635","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15785"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 53062,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AT2yK0E1T6ya9pv1uuZ4GbQ',
'x-fb-trace-id': 'FKaRPPQy+06',
'x-fb-rev': '1006602612',
'x-fb-debug':
'YRzHXz4vzbZC5iGSEUPl9NlqYdWZ0kojAlBjDf4n8OZ0gJbTNIgGV9a781Iu/y9yv20ycOQhprbBigFByr
rlKQ==',
date: 'Tue, 15 Nov 2022 02:57:49 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919341184635","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15785"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 218907 - #[39m11/15/2022, 6:39:52 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +32981714ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:39:54 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1934ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:45:26 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of undefined (reading 'id')#[39m#[38;5;3m
+332656ms#[39m
TypeError: Cannot read properties of undefined (reading 'id')
at ContentService.login
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/content/services/
content.service.ts:899:51)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917007191251","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12013"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 176334,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AEm7IIRJLZ-MN4DUP1beb_t',
'x-fb-trace-id': 'Ggkv4kuQlEq',
'x-fb-rev': '1006607810',
'x-fb-debug':
'wT/Xsvw9KUcWNCLj778JtcNjjUQRs2c0OisRhdWKryyFVYeUPZfvdD/6s/KkAyCJmT5x6wzjOEY78LiKW0
P6XQ==',
date: 'Tue, 15 Nov 2022 07:11:44 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917007191251","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12013"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918305341579","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28597"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 177369,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ApWBqpYU5tSN6mAZKZJ0gba',
'x-fb-trace-id': 'B3/+U2gDgNZ',
'x-fb-rev': '1006607810',
'x-fb-debug':
'Zsy8UDzPk9Voek8peawLZzosaPkVywH8ZeYtFm/Mvex3fhyxhoem2FsUw9mOzT5OH8uOhq35tBPfghaWGi
A1pQ==',
date: 'Tue, 15 Nov 2022 07:12:58 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918305341579","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"28597"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918208552735","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"63814"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 178837,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ADkOZYP2TeeQ5meoA3UQldi',
'x-fb-trace-id': 'CxpXHcnqnio',
'x-fb-rev': '1006607810',
'x-fb-debug':
'se+yFERjLrP/ar67kEHge9lBuxImc8OrIU7PYiT1LWqLVmE0wAnqNxBOAC+EGtZ4Cq73YT8jTJvYikVO3C
7AVA==',
date: 'Tue, 15 Nov 2022 07:14:42 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918208552735","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"63814"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/15/2022, 7:15:00 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१५"#[39m#[38;5;3m
+1774002ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१५"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919284747143","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43007"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 317031,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A1AJm6VU6x29QuZHWOy1Zk-',
'x-fb-trace-id': 'Dw3kpbPPjMF',
'x-fb-rev': '1006607981',
'x-fb-debug':
'HP+9SQ2bVbdLqGZ2DD01QfHZ/AcegDJILoYU7I1t1z2BEUkl8S74sWWBQH3+sIGQriv+0css3QR7+C62pC
Dznw==',
date: 'Tue, 15 Nov 2022 11:49:48 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919284747143","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43007"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/15/2022, 12:08:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "name" violates not-null constraint#[39m#[38;5;3m
+17636342ms#[39m
QueryFailedError: null value in column "name" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 12:26:38 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +1061250ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 12:38:43 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token # in JSON at position 462#[39m#[38;5;3m +724978ms#[39m
SyntaxError: Unexpected token # in JSON at position 462
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:516:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 218907 - #[39m11/15/2022, 12:39:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +20027ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 12:39:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "২০২২-১১-১৫"#[39m#[38;5;3m
+272ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "২০২২-১১-১৫"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 12:54:49 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "fullname" violates not-null
constraint#[39m#[38;5;3m +945438ms#[39m
QueryFailedError: null value in column "fullname" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919308187836","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11083"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 384941,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AuI4_UwemKWBOXRZDEHE2NL',
'x-fb-trace-id': 'DmTSKiop8DQ',
'x-fb-rev': '1006608246',
'x-fb-debug':
'xeyjcj1U4eoQRAb+yJ9/EvOzamMSdjVbofahquV8CgU+DEnJz7wUIKC2Lv89dK2O7JBjRJKqjSI+4cmMpW
lnMw==',
date: 'Tue, 15 Nov 2022 13:39:20 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919308187836","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11083"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919308187836","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"22048"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 385595,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AN0t_tQZ9ZO5VHrvVK88tUl',
'x-fb-trace-id': 'CsBM6neX/NG',
'x-fb-rev': '1006608246',
'x-fb-debug':
'MmOjy59fkqep6DTfT3Ok7s3ZD8Xl7YuPoNHWiQSsYt4yIGOolZFMu6jbrRKrUOjj8ryVoYmn54zAMMOKTl
SoUA==',
date: 'Tue, 15 Nov 2022 13:39:44 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919308187836","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"22048"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/15/2022, 2:02:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+4070114ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:03:42 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +63404ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:04:32 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +49992ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:05:29 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56370ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:06:59 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +90503ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:08:28 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +89119ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:09:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +88512ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:11:05 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +68170ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:12:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +76028ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:14:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +144409ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:25:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +629382ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:27:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +118978ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:30:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +168803ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:34:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +247785ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:35:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +55718ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:36:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +67353ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:38:24 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +130651ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:38:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+28021ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:39:24 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +32119ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919431931699","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"34517"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 439452,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ATDd6LJ1iRkQPQmMUQOhgGv',
'x-fb-trace-id': 'AjF2IA5931E',
'x-fb-rev': '1006608246',
'x-fb-debug':
'Lpj5zzIMerxa090fgfu6TBVV6AoIxZCykbKRvwjmzzVG334MqusfMeUdkzD8C8HFX+avZQfKJjRo4zuzqp
gbOw==',
date: 'Tue, 15 Nov 2022 14:39:27 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919431931699","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"34517"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/15/2022, 2:40:55 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +90485ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:42:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +77046ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:43:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +65051ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:44:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +57610ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:46:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +115630ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:47:58 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१५"#[39m#[38;5;3m
+108176ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१५"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:48:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +35896ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:49:37 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +63282ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:50:30 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +53012ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:51:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +86458ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:52:51 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +54385ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:56:05 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +193642ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:57:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +58793ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 2:59:53 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +169675ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:00:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +52035ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:02:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +82804ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:03:24 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +75892ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:05:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +101499ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:06:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +67374ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:07:14 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +60949ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:08:03 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +48705ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:10:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +151668ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:11:35 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +60719ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 3:15:32 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +237434ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919021527983","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"20975"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 501897,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ag_34ED3iipXS8W_z1k6AlR',
'x-fb-trace-id': 'E8RTp8UlTcK',
'x-fb-rev': '1006608246',
'x-fb-debug':
'YbFxhpdluthMTxpBjALcM2kKUOyH9Ad6SWqTMUWxTKMF3ir0nR1vds/Pk7arMANv8hzTXGkIZ31kvpNJ1Q
c/lQ==',
date: 'Tue, 15 Nov 2022 15:43:13 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919021527983","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"20975"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/15/2022, 4:30:58 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4525354ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:27:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+3363939ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:28:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +59799ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:28:56 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +54809ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:29:47 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +50862ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:31:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+79907ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:32:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +74700ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:33:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +50079ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:34:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +52017ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:34:53 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +48921ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:37:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +133768ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:38:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +61818ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:39:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+59782ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:40:27 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +78395ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:43:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +187708ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:44:35 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +61069ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:47:06 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +150420ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:48:17 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +71636ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:48:54 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +36165ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:51:20 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +146147ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:52:35 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +75303ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:53:35 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +60343ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:54:42 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +66491ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:56:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +89915ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:57:54 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +102195ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:58:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +14380ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 5:59:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +55961ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:00:00 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56071ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:01:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +61643ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:02:44 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +102238ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:03:38 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +54033ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:04:39 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +60915ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:05:37 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +57950ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:07:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +117008ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:08:46 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +71550ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:10:07 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +81423ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:11:12 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +64460ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:12:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56258ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:13:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +56258ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:14:04 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +59541ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:15:16 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +72685ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:17:26 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +129382ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:19:41 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +135420ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:21:33 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +111367ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:22:32 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +59924ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:24:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +109767ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/15/2022, 6:25:45 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +82850ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9191","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12880"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 199
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 594436,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 199,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AxhK9SJ17XLeIhXw7LNjcpV',
'x-fb-trace-id': 'COLSP6kRpCH',
'x-fb-rev': '1006609340',
'x-fb-debug':
'OJnMCPs4cXdYSzUbVbx/UWcmxXwqAJx4bLJyr7wwjUhQ1kxphC5GWysHMdgqWCvC+GZHXWozThwq/
Ivx87HG1A==',
date: 'Tue, 15 Nov 2022 18:40:46 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9191","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12880"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 199\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91913378549","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"41261"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 206
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 594765,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 206,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AzBmzNekL1cQ7dFxx4MrqqU',
'x-fb-trace-id': 'DTO/K73cN9U',
'x-fb-rev': '1006609340',
'x-fb-debug':
'sB3sTyWWDm0Koe7q+43FRPc2OtQU7f44B4TDV3sn1qtSHrGfp5KdQgu/qnMLjqr4rS0FaHDzkREZjONvQl
gYXg==',
date: 'Tue, 15 Nov 2022 18:41:27 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+91913378549","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"41261"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 206\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918251040569","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"97820"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 624776,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A7q2txWx_kBttILa586VyWF',
'x-fb-trace-id': 'DqZ7l6Vzxpo',
'x-fb-rev': '1006609340',
'x-fb-debug':
'2h0Skef36NO0D2vXuc+65OBShwMZnxJ8iwtR1U0knGe2zylWgum9l9VSpDSkIT+JdgJHSPNHQaA18A25hK
FhXA==',
date: 'Tue, 15 Nov 2022 20:13:08 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918251040569","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"97820"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917325057072","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"42582"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 648950,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AEhnoCv1pQfVX3YVmN_--kQ',
'x-fb-trace-id': 'CLC1yhUSyn7',
'x-fb-rev': '1006611052',
'x-fb-debug':
'zhun7Tj+bjUfmkk/14qEqMJIljCSYv5w9uOW7cDN2nFP6cjyfAjy99JNz8NQm89PeQgmUdIDW1MyvVyeEK
J6FQ==',
date: 'Tue, 15 Nov 2022 23:49:06 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917325057072","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"42582"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/15/2022, 11:56:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token # in JSON at position 455#[39m#[38;5;3m +19836879ms#[39m
SyntaxError: Unexpected token # in JSON at position 455
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:516:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 218907 - #[39m11/15/2022, 11:56:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +30036ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917428731210","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57169"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 664364,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Az6zmMUJ_GJ4DeHfxeCwvxi',
'x-fb-trace-id': 'E8yv80QPgl9',
'x-fb-rev': '1006612761',
'x-fb-debug':
'wlv0p+IQ1k1V7DvlWuoqwVFOegoVeHAQbssqJ+hz9AgKsHQfCRVShdk7KT0i1/UNBxDEDB19DuqgX74jVV
5k3Q==',
date: 'Wed, 16 Nov 2022 00:53:07 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917428731210","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57169"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/16/2022, 12:56:35 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +3583493ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 12:56:49 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +13495ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 12:57:04 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +15369ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 12:57:10 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5578ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919486642625","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43461"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 683234,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AjpjG7kot45l356Pe_QlKFL',
'x-fb-trace-id': 'DsA8yjMY076',
'x-fb-rev': '1006612761',
'x-fb-debug':
'EzaFBRn6oZOVBypqN1tcpH8a9PRM6TC4UzHjfPsZwgYsZEJiIRMJCKtLNbsrBAEwoO+leCBt87AOTD6y1g
fbfw==',
date: 'Wed, 16 Nov 2022 01:51:59 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919486642625","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43461"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/16/2022, 2:01:17 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3846853ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 2:34:56 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token # in JSON at position 125#[39m#[38;5;3m +2019488ms#[39m
SyntaxError: Unexpected token # in JSON at position 125
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:516:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 218907 - #[39m11/16/2022, 2:35:47 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +50461ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 4:20:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6306712ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94321"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 780342,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A5JJUWSDBEDK6I5k2AnfBZ5',
'x-fb-trace-id': 'GXrvAL2DHJs',
'x-fb-rev': '1006614608',
'x-fb-debug':
'L0BMxcxlTPUK+gYzsCUbLb3SixGgPPFweSok3J32jnJIYf3QSMOF08Tn32bD/A56FyZDYTWQd0prbnLm+w
AlBg==',
date: 'Wed, 16 Nov 2022 05:32:09 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"94321"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19918"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 781331,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AxtGdNSiiRe-avF4MXPIK7t',
'x-fb-trace-id': 'D63Z/fmkmii',
'x-fb-rev': '1006614608',
'x-fb-debug':
'28DBeqD7keA7CMvnil0WrYiNX/fUlH8X0dO5po+6QyPSl5OFxOVmy38m1Xwoo+KhG6sNG599/
AiCcP7fDblPEA==',
date: 'Wed, 16 Nov 2022 05:35:04 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"19918"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26327"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 782641,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AicQidDc1fDelr80pSRko_s',
'x-fb-trace-id': 'GARsL5WrMst',
'x-fb-rev': '1006614608',
'x-fb-debug':
'+A8q3uSJJO6RPCxHfdJIa9oOJZePyD9Y2VaBfaqAiztkUokDvZXceir7Ywo1kbyv3KMBahyfoOk/
DwxxBv8LyA==',
date: 'Wed, 16 Nov 2022 05:40:11 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26327"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"42927"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 786188,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AiE7JybCYL27aKpXLIcPiCL',
'x-fb-trace-id': 'FmflwZXpsD4',
'x-fb-rev': '1006614608',
'x-fb-debug':
'ks8B6Yzdt6fWHAFUaOG7W6VJJ3FG9pUv9uejZYp+sFOp4mgNEAHZxx3we13Jn/WHUSRIiYBMbyT7J33hNi
Vz2w==',
date: 'Wed, 16 Nov 2022 05:44:56 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"42927"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"99296"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 786309,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Abp9jidMjncM-0z-Px4Jl5C',
'x-fb-trace-id': 'Ed4RQD1mSKA',
'x-fb-rev': '1006614608',
'x-fb-debug':
'VFpq8RjthLxl4K9gEill5XPs9hWj5a0pirraLIUzlC8t8uyckZAl3bb5+4oy6ppNwmqSC/
RX8jqA6ITpmqSCvA==',
date: 'Wed, 16 Nov 2022 05:45:29 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"99296"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85123"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 790821,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AJkK8hYCc4KU4TqGOSvUZzi',
'x-fb-trace-id': 'GTCXK5d2rj8',
'x-fb-rev': '1006614608',
'x-fb-debug':
'tjBAe/QMeay9lQt09phI5LOknAzjZdpN/+pZnukUnvHuU+7mU3X1tAqewt7qkKoc3EAvVzdwuU/
cwKlBvmLY7Q==',
date: 'Wed, 16 Nov 2022 05:49:32 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"85123"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15656"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 842160,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aej3cMn8ErggKejRQ7_4vhu',
'x-fb-trace-id': 'DkNGrBJJeZm',
'x-fb-rev': '1006614608',
'x-fb-debug':
'w/Eter260/0xJr27nUcC4nbMRMC0EPLneQMPTvHhMOx0lOVoP8s0wQ28N7+aUq2LWD3ywVNl6ApeF38bmo
i7Sw==',
date: 'Wed, 16 Nov 2022 05:57:30 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15656"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"41451"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 884867,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AAVlg9UqZRId8sOG8cxo3Fn',
'x-fb-trace-id': 'CeYW3JtkFpn',
'x-fb-rev': '1006614608',
'x-fb-debug':
'D+JzPkaFseFdIk/oUPLfVGqjBunmDkCuXK/QLSsn6qM07zBtnWbWyXqP5mxay01Siw1D2EjMXYRS/
LpUCEXZxQ==',
date: 'Wed, 16 Nov 2022 06:01:20 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"41451"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917907772069","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79617"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 963778,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Am8pTD6BvohSpqAiclKeuK9',
'x-fb-trace-id': 'FfvtvctcO1X',
'x-fb-rev': '1006615111',
'x-fb-debug':
'MlMY9XgdVsMCXbqZBWX8ugtRvh9UL0L3fY4WDaPZtFMlONYpKfMViw1QURIuQ7sfQmCShKNff7Pb+Dk0dc
So/w==',
date: 'Wed, 16 Nov 2022 06:59:59 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917907772069","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"79617"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/16/2022, 8:30:31 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +14977607ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:03:29 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+1977935ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:05:31 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "tag" violates not-null constraint#[39m#[38;5;3m
+122302ms#[39m
QueryFailedError: null value in column "tag" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:07:20 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +109191ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:09:04 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +103635ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:10:52 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +107872ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:12:30 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +98129ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:14:07 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +97234ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:18:45 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +278083ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:21:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +187089ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:22:39 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +46503ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:26:12 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +212636ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:27:11 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +59627ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 9:43:55 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1004095ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 10:01:49 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "name" violates not-null constraint#[39m#[38;5;3m
+1073924ms#[39m
QueryFailedError: null value in column "name" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 10:04:35 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "name" violates not-null constraint#[39m#[38;5;3m
+165510ms#[39m
QueryFailedError: null value in column "name" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 10:06:13 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mnull value in column "name" violates not-null constraint#[39m#[38;5;3m
+98582ms#[39m
QueryFailedError: null value in column "name" violates not-null constraint
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 10:08:15 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +121669ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 10:09:37 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +82370ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 10:10:35 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +57421ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"86392"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1112790,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AzzG1s2DVdJw8QzQdTAje31',
'x-fb-trace-id': 'CP6djP3l4Gk',
'x-fb-rev': '1006615541',
'x-fb-debug':
'7YdHu+i71rXXNaR+DdjPQvokJirqdXcGc4Ws4Jul0YuXKpE9TkPYfNf0Q0YSosen7wy5mNZ+PvK5XVjKXx
htVg==',
date: 'Wed, 16 Nov 2022 11:03:29 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"86392"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45886"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1141216,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ABbszSJDStIilxtkpV_a9Wt',
'x-fb-trace-id': 'Hf0Wh+ulGj0',
'x-fb-rev': '1006615541',
'x-fb-debug':
'BaY1I7TVZ8SOX5F9bA7Dx6Dn5gCi0fKZN1inurT4AKvE48QZI3uvjQTQPp9K56vFHUhutEOVeGB+Aj2HI0
rM8w==',
date: 'Wed, 16 Nov 2022 11:17:53 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45886"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65011"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1157324,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AIrou6j5695Msq2Bz_3LiwI',
'x-fb-trace-id': 'EQDwmf1Q1gT',
'x-fb-rev': '1006615541',
'x-fb-debug':
'bLQR9b6QT8bqXa2YLe5I8K0/BriczIAtTJezHLKgjMCsgQoEQt8X8aa3PBuhnALgzKtL6gaiA2r/
T8RLzgLhPw==',
date: 'Wed, 16 Nov 2022 11:29:12 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"65011"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81316"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1174229,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AyE5xpCoKBuYa_ruRlfskdP',
'x-fb-trace-id': 'DNJjlQlsy9q',
'x-fb-rev': '1006615541',
'x-fb-debug':
'll2F9B+J1XJksdCA8mF/KHZbDq/OKCpD78NJRwRpdFCSvNLRGsVdDf1ZBu5Aj/QrKLxKav+QuVcFpl5dEJ
yCEQ==',
date: 'Wed, 16 Nov 2022 11:43:28 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"81316"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31082"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1277325,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AVwXDl-JTmmxMrT7r32tIAC',
'x-fb-trace-id': 'GJfhRMoYUQd',
'x-fb-rev': '1006615541',
'x-fb-debug':
'VKvQMGjzp0NxgNmIXePt7cbV8M6viRMKRAYuz+jZdFEtonCj0XfZQW6tn7E5+OpsPPV0zDCM35xsmyr+LY
1H9A==',
date: 'Wed, 16 Nov 2022 11:46:42 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"31082"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917683037557","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44823"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1315973,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AwRCs9g66lbsEa2Ky7Vno0-',
'x-fb-trace-id': 'Brj5aEe7quN',
'x-fb-rev': '1006615541',
'x-fb-debug':
'OaNXGVWX3MfjsvUmRMSzUp9SNCaW5nsrZAG1rmglxS8IOodIgeczkQHIKowE45SHPND6O2jA8aNMb88Gim
Fwgw==',
date: 'Wed, 16 Nov 2022 12:00:26 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917683037557","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44823"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/16/2022, 12:00:44 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6609021ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 12:17:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +1032713ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917676782604","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"77948"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1334373,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AiavRJXz6r8stLosfcYLNfr',
'x-fb-trace-id': 'BRPzSf4oFNp',
'x-fb-rev': '1006615541',
'x-fb-debug':
'b8irF7xy+jHNtOjIokAIYNqxDMvQj44HBTYjJfjz9iTIWkn0bWKpF1U8GPqO+wi+AoPdhIIT6ttm9tq1Hf
7H6w==',
date: 'Wed, 16 Nov 2022 12:45:01 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917676782604","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"77948"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917676782609","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67733"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1335080,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A9KYScl4G1St9C5UcWhE_b5',
'x-fb-trace-id': 'GA8T+fSDRME',
'x-fb-rev': '1006615541',
'x-fb-debug':
'KM7f7Br9lFUhA7BT+fMluR1n8dJT7MV2/YFd8fdJSOpp4CNwFCZ+NgJe5Q9V8n1mH0cF2cCSoM+
+mG+E2FZStw==',
date: 'Wed, 16 Nov 2022 12:45:48 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917676782609","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67733"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917676782609","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43908"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1336817,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AFTWCCFRfus46-QjMDDZCDB',
'x-fb-trace-id': 'Cn+vdQKnyMH',
'x-fb-rev': '1006615541',
'x-fb-debug':
'ADxj714o6Wac0PeB9uxFfV32fPtEmwisIDJZ7bP4Lv4SclfYt9VCdYGYpT/BcRdPbvMH2T8hZapeUHPCrs
JdHA==',
date: 'Wed, 16 Nov 2022 12:47:31 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917676782609","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43908"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/16/2022, 12:50:49 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m
+1972292ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 12:54:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +193401ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 12:56:21 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +138311ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 12:57:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +61316ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 1:01:08 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +226420ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 1:02:13 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +64548ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 1:03:15 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +62413ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 1:04:10 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +54539ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 1:05:26 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +75984ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 1:06:22 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "SSC"#[39m#[38;5;3m +55778ms#[39m
QueryFailedError: invalid input syntax for type integer: "SSC"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"63138"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1396670,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AbqhRktn0FW-DbhLnmJzdJg',
'x-fb-trace-id': 'B8ONry7/J4e',
'x-fb-rev': '1006615697',
'x-fb-debug':
'pwhuWWChlSzMtF2KnVilcNqThbLqpKnxR7WD6Nriy72yJb3H/4PQoko5O8zu01iUqNNpVhopsKz1STe/
6rn5pw==',
date: 'Wed, 16 Nov 2022 14:05:53 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"63138"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25091"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1402994,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aeq0klfL_dR9QNMVQ4MD5eR',
'x-fb-trace-id': 'AE//JCe7yTt',
'x-fb-rev': '1006615697',
'x-fb-debug':
'MZZYfIIKP/aZB/v1rjQujY5Q6slmnff7fFeTCMbHJn7hj1e+32g3adIjB8rwMDFteP+dNVt4UXhU6QjTCV
DLSA==',
date: 'Wed, 16 Nov 2022 14:12:41 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"25091"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45854"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1405062,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AsifaHLYGKEVaZSEHyKEgER',
'x-fb-trace-id': 'BXm0Q0d5vAw',
'x-fb-rev': '1006615697',
'x-fb-debug':
'nCu/qPh0uaZ6MsXds2jyY1JmiVznLHP/pI0rwsmnoNTvZAoMH5U9sZ5vDF8Y5/rc1Wvz398ZEh56kc7qo0
peUA==',
date: 'Wed, 16 Nov 2022 14:14:46 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"45854"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"27539"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1407667,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ANC77O_mNZk4BRs0cORujQ8',
'x-fb-trace-id': 'C9wM+UeIYon',
'x-fb-rev': '1006615697',
'x-fb-debug':
'R0WtEzvk3C9AF6VaYHG8LWhSRtILYY3+EvP3hitdWXYN+U73enkh83utDsDwizNoTXgImdMB/
TnEh5LmeMGO4g==',
date: 'Wed, 16 Nov 2022 14:17:17 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"27539"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917734031740","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43550"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1468118,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AkrPZJ3ZKkrHi-hvRvw5dl0',
'x-fb-trace-id': 'EZ56c5J4yEO',
'x-fb-rev': '1006615697',
'x-fb-debug':
'ClqvdIoo0jPti+xCYltmk5qXhsSXpqPIeRxX1VOr6QysGID0Godcae0OkzLgifJqO0DRMqX99/g0Z7TD/
Pi0tA==',
date: 'Wed, 16 Nov 2022 15:30:29 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917734031740","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"43550"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/16/2022, 3:37:53 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +9091348ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 3:49:42 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +708858ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309757061","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84804"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1500107,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AJzKC2PLMFtH5Ep6v8B3WR7',
'x-fb-trace-id': 'DmxCCNKsXR2',
'x-fb-rev': '1006615697',
'x-fb-debug':
'9GU2z/00ZMd2JT/VEAOb/gl806fXrfgycFlAIskJMrbElJ/Qu8yRlB0xmEqjBJiQ+wByA/7DvZYz//
64HPw3xA==',
date: 'Wed, 16 Nov 2022 16:29:05 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917309757061","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"84804"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918051152280","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21628"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1530014,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AtyiSfb8q3nEqlT7NedtmSl',
'x-fb-trace-id': 'GgV/UsCmIBV',
'x-fb-rev': '1006616607',
'x-fb-debug':
'XD8bzDc8JPGZtNg5uLWt1airIT2KryapHUjzNQLiBOPS5R0AQdiFIuLcFwYYlrdb2qLyfSXAmGL9FPxjfV
PmYA==',
date: 'Wed, 16 Nov 2022 17:30:27 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918051152280","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"21628"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/16/2022, 5:30:34 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +6052477ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 218907 - #[39m11/16/2022, 7:03:43 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5588600ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 7:03:51 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +7784ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/16/2022, 7:03:55 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +4251ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918638210510","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49320"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1571390,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AYBGsi_-Wzoz7LzOKNJ80hs',
'x-fb-trace-id': 'AjXahl9Oobz',
'x-fb-rev': '1006616607',
'x-fb-debug':
'gx//FIxKUlgv9hCwOjHzMOyKSZD2XrDJJF7eiLdM+JmfNL41D7F8vXf/k66BtcxnHBKJefPuha/
93RBL5jbCHQ==',
date: 'Wed, 16 Nov 2022 19:15:55 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918638210510","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"49320"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/16/2022, 9:45:51 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१७"#[39m#[38;5;3m
+9716266ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१७"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918446520131","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15167"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1596793,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":0,"total_cputime":0,"total_time":0,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A-HP10kKvl8Qlbv8KDHeLZl',
'x-fb-trace-id': 'FVIvj0wIYcK',
'x-fb-rev': '1006617704',
'x-fb-debug':
'azSwhybkPbWXrrGxeeV6uJRETE1vME4SWxYScqgsshVljuU0rlfBDfBBZfuSAmx8rvUC1gDfpVG7RU/b/
lRrnw==',
date: 'Wed, 16 Nov 2022 22:56:51 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918446520131","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"15167"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918829889321","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44917"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1649029,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AbeOnPTgnBfYMzF-1fvKlj3',
'x-fb-trace-id': 'DRmb6zPuSB/',
'x-fb-rev': '1006620693',
'x-fb-debug':
'ZEecKHB7dDJ6EZ/Hp+gZWQ5lw5mfmWIBidII7wQodRqddslsm/yZB46WOzCz1rkAd1roBIsXBoCsSeDy+h
ehkw==',
date: 'Thu, 17 Nov 2022 02:43:36 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918829889321","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"44917"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917256072770","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11311"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1658402,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ABlKua3oEQaXqQKICsIBlmT',
'x-fb-trace-id': 'FbDaVOMkoHm',
'x-fb-rev': '1006620693',
'x-fb-debug':
'w9ERA9D+XdY9+21a/UYKGoSHAMy8tDaC9KU2aqa7D37g0nMGZSsIp1mQS3EKh6dnmVgj/
eGGkHdnVd+G8/rQNA==',
date: 'Thu, 17 Nov 2022 03:07:08 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917256072770","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11311"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919652452456","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89385"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1692285,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AucX8RLCGe1N8U8dYZDrPUy',
'x-fb-trace-id': 'CzkvniBcdes',
'x-fb-rev': '1006621747',
'x-fb-debug':
'bY7oXm2HSOGebbAHsuJWNWy0GTEwzoXvSYTw06HyJU2LVNZ3qqgL/toMCJ1aScC81aLNVmPPicLrM5oN9m
NXJw==',
date: 'Thu, 17 Nov 2022 04:23:26 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919652452456","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89385"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919652452456","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67780"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1692499,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AkwW50uuxbX7fHglPsiu05j',
'x-fb-trace-id': 'Gn+JJ4wJ/Ag',
'x-fb-rev': '1006621747',
'x-fb-debug':
'omc1R/hiRs3ul66jWDL+I4YZAdh88bKIf+hTiZrlOqcKMdh8TLU7K6Mh+w1QBq6gn1Qpszg3cV2ZKwUgVY
WwyQ==',
date: 'Thu, 17 Nov 2022 04:24:03 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919652452456","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"67780"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918766472325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89211"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1725818,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AquyYNE_lMSL2vkKA8OXNDI',
'x-fb-trace-id': 'GOboAnUnJ7t',
'x-fb-rev': '1006622468',
'x-fb-debug':
'Y4OBvpitPeHrkgP5fD+c3900KVZq5ZCsGw/2SNy7PzyfCaCfT/Qxh5MaacHhNjKMWFY4YnCQ+S98IVdcii
zCGw==',
date: 'Thu, 17 Nov 2022 05:48:12 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918766472325","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89211"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/17/2022, 5:58:37 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +29566228ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917687863534","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23732"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1737874,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A9Q2ZYPzxHV0rP5uCvMJLnt',
'x-fb-trace-id': 'AMKv8ZSc2EC',
'x-fb-rev': '1006622468',
'x-fb-debug':
'cMRLrfRNCBBS3iaqEQq8+nL+Bw80xdIF8HJj8XFvW/DRffzEy5huRgZpUmQbTh5XaFBZFtrdbMzdk10UGO
iWyA==',
date: 'Thu, 17 Nov 2022 06:03:45 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917687863534","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23732"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/17/2022, 6:04:34 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "२०२२-११-१७"#[39m#[38;5;3m
+357022ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "२०२२-११-१७"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918812970468","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70561"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1757600,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A4451sFXTofls0yABGTVz2u',
'x-fb-trace-id': 'Gj/Uq+/+ssP',
'x-fb-rev': '1006622468',
'x-fb-debug':
'nQZa4WxPL+rizVsGFglejWsRhPGDnTKxg1fmFYz8z80pSolY6Rp6I2Q41gD6AF9ThgUGMHrlbvGCBUPRqO
EIFA==',
date: 'Thu, 17 Nov 2022 06:31:10 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918812970468","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"70561"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/17/2022, 6:31:34 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1619990ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/17/2022, 6:48:39 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +1024885ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26239"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1866355,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Axm6GVDyx89KhrLN0MaBA1H',
'x-fb-trace-id': 'DpUArGCiPhJ',
'x-fb-rev': '1006622468',
'x-fb-debug':
'okHIU7eh2rFaSu5Ps8yBY7BY5POhARnp6lumyMyWoxWA1htgiFKMTvQ2Tdd2Zc8u9bDBR0FN7umf9vAxn+
04Rg==',
date: 'Thu, 17 Nov 2022 06:56:03 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"26239"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51969"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1871709,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AITb575q6ZDJSuvblWq_pyG',
'x-fb-trace-id': 'AWWrLFBKGZF',
'x-fb-rev': '1006622468',
'x-fb-debug':
'D8AJxmqVfKUrey0VZSXZ8hYuzB3CbJENC8JsZPpnH4m1vB0C5sVpP42QqMvy8lFT96qhvXFzHnKGyHTTFa
l19A==',
date: 'Thu, 17 Nov 2022 07:03:48 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"51969"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1876748,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A98qZSkxEJVJ-GVsoqk81OI',
'x-fb-trace-id': 'BiQFSMWuaXg',
'x-fb-rev': '1006622468',
'x-fb-debug':
'WgqBmJnUoEH84/HEFilmejapyhhW6utT2/M0h59zUCz8hDM6zuadkhAcwQuJSdVYjDxDJRNnrV7CamwJs6
yXVw==',
date: 'Thu, 17 Nov 2022 07:10:04 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+911","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23540"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 198
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1887647,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 198\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 198,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A2YXX6bmIQ38JYS4RBxzJSf',
'x-fb-trace-id': 'AAKTZmpXNPF',
'x-fb-rev': '1006622708',
'x-fb-debug':
'oPK4R+ZMweRYZFcfTXnFVz5QHneF9EXMJYI9BYvl/00YIJBjIYL4mxLapvshjKfd46oYK1Ma69Pf5om5QJ
t4QQ==',
date: 'Thu, 17 Nov 2022 07:26:03 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+911","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23540"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 198\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1947931,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A2DHUQTtrZd1N3Ynqhqqpgp',
'x-fb-trace-id': 'GhYWZPJQ8S+',
'x-fb-rev': '1006622708',
'x-fb-debug':
'pLdstf/o2CEXgWkFSz6fvqNOOwScn3R0SphuMyDjvvLg8g5zUw3xqZyCQYDgYO6rmqJTYgXwumzC6tEwX3
+f0w==',
date: 'Thu, 17 Nov 2022 08:54:50 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+910000000000","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"12345"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/17/2022, 9:57:53 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +11353971ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9112345678","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57913"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 205
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 1995657,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 205,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ArOUjUCHMKPMttX0V7NGiR3',
'x-fb-trace-id': 'GM2aEa9TvrH',
'x-fb-rev': '1006623010',
'x-fb-debug':
'PlAjY5sPrBgr8+3Mhts1uRixJkwP065nU16SSw8v8GbcWoMqr4A7wGoFLj2PgPBnPNLlszhtiMpxaedw2E
vUWQ==',
date: 'Thu, 17 Nov 2022 10:41:46 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+9112345678","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57913"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 205\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/17/2022, 10:54:38 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type integer: "null"#[39m#[38;5;3m
+3405070ms#[39m
QueryFailedError: invalid input syntax for type integer: "null"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918180957720","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89421"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2031779,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Av3Lk3EtUCQ8k2u59L6hK6-',
'x-fb-trace-id': 'BKsCv+ad9yp',
'x-fb-rev': '1006623303',
'x-fb-debug':
'1380S9Cvc7Yu4Fl+YsD3NmrNFNSc1BOKtr8oz2vqjpOG+RE0E3AynQzlnuf0F0d94X+lx2Dhc05G0hWNs2
+WyQ==',
date: 'Thu, 17 Nov 2022 11:50:18 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918180957720","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"89421"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72904"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2036647,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A5NcP4PqpIZvsqUQdIiuPpD',
'x-fb-trace-id': 'HNFfz8wgqH5',
'x-fb-rev': '1006623303',
'x-fb-debug':
'F4g0hEJWwuBSU7/6J29DTZjNGvVkcblFQApRfsonYw7F5d91eRKqJr0Kk5UJ0wxo4OUaMjhZEOG+aa9Do8
l1qQ==',
date: 'Thu, 17 Nov 2022 11:59:00 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"72904"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/17/2022, 12:30:54 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31minvalid input syntax for type timestamp: "২০২২-১১-১৭"#[39m#[38;5;3m
+5775213ms#[39m
QueryFailedError: invalid input syntax for type timestamp: "২০২২-১১-১৭"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/17/2022, 12:31:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCommand failed with exit code 1:
/home/ubuntu/SunoKitaab-APIs-Build/node_modules/@ffprobe-installer/linux-x64/
ffprobe -v error -select_streams a:0 -show_format -show_streams
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Read Aloud/Class 11/राजनीतिक सिद्धांत
NCERT/cl 11 pol-h ch 04 samajic nayay.mp3
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Read Aloud/Class 11/राजनीतिक सिद्धांत
NCERT/cl 11 pol-h ch 04 samajic nayay.mp3: Server returned 403 Forbidden (access
denied)#[39m#[38;5;3m +58039ms#[39m
Error: Command failed with exit code 1:
/home/ubuntu/SunoKitaab-APIs-Build/node_modules/@ffprobe-installer/linux-x64/
ffprobe -v error -select_streams a:0 -show_format -show_streams
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Read Aloud/Class 11/राजनीतिक सिद्धांत
NCERT/cl 11 pol-h ch 04 samajic nayay.mp3
https://sunokitaabfinal.s3.ap-south-1.amazonaws.com/Read Aloud/Class 11/राजनीतिक सिद्धांत
NCERT/cl 11 pol-h ch 04 samajic nayay.mp3: Server returned 403 Forbidden (access
denied)
at makeError (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-audio-
duration/node_modules/execa/lib/error.js:60:11)
at handlePromise (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/get-audio-
duration/node_modules/execa/index.js:118:26)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918447205568","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"46342"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2072004,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AX68hUCNEzX1d0vm1jYOwbD',
'x-fb-trace-id': 'DblhCS0y+iy',
'x-fb-rev': '1006623303',
'x-fb-debug':
'b01LebNpg8+fErYxtq4LmEH38kyE3L0953K0Q9F5PTHGJZnxj3i6o4s3c/zYJF1IpqYo7RgoJn92ILlGB3
LFaQ==',
date: 'Thu, 17 Nov 2022 12:46:11 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918447205568","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"46342"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918074168254","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11707"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2092934,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AWVDmWKOUu-_qdFeVeGVYlv',
'x-fb-trace-id': 'Aace7D1KHXK',
'x-fb-rev': '1006623303',
'x-fb-debug':
'lma4UFL5ADnKND4X+Fv78zwEIH4qNd2erL4hOgw2/weSLVoYBnrLoN1yyObTIYZN18pHEZl4DeAhfX0uNE
VjqQ==',
date: 'Thu, 17 Nov 2022 13:11:49 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918074168254","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"11707"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918074168254","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54278"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2107175,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AChyI_HErQ7nG_BuWeV4RwB',
'x-fb-trace-id': 'DGK1KpRS9XY',
'x-fb-rev': '1006623303',
'x-fb-debug':
'uGA+SIAglHTnECd3BP8UhBa5eiNR8fb43NGUIomh/CO3rX/XlVrM+84XuFGn1Dw0VeDlO5ZM7cxMMiKmHi
v0Aw==',
date: 'Thu, 17 Nov 2022 13:31:33 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+918074168254","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"54278"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/17/2022, 1:43:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +4320738ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919778534202","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"14556"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2138867,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'An8XefRpMARZbev6vkkPU5D',
'x-fb-trace-id': 'HVoYeUqNWX2',
'x-fb-rev': '1006623543',
'x-fb-debug':
'oU+UMPUJ+BUy7024m8aJEDBuCg/nCQZPj28RMM0wZ5cRsF4165vZQju70ExYhGlibTkBS8d3+fFC419Sbg
kEgg==',
date: 'Thu, 17 Nov 2022 14:16:03 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919778534202","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"14556"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919778534202","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17860"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2141182,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ax8QgnGUwWudCWsz46toQGV',
'x-fb-trace-id': 'BVUAXzEyVfq',
'x-fb-rev': '1006623543',
'x-fb-debug':
'BIg4T4CvTfKDcFf3Tyh54tKLFaUKIU1gj1cYptHjKUHLZZUJeqdYPAx8ecoyps9tjAt9+i1NYVLg7eZnuA
izig==',
date: 'Thu, 17 Nov 2022 14:18:37 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919778534202","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"17860"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/17/2022, 3:21:52 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +5879363ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/17/2022, 4:23:02 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mUnexpected token # in JSON at position 166#[39m#[38;5;3m +3669881ms#[39m
SyntaxError: Unexpected token # in JSON at position 166
at JSON.parse (<anonymous>)
at UserService.truecallerAuth
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:516:28)
at UserController.authenticateUserWithTruecaller (/home/ubuntu/SunoKitaab-APIs-
Build/src/modules/core/users/controller/user.controller.ts:96:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 218907 - #[39m11/17/2022, 5:04:36 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +2494025ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/17/2022, 5:05:57 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of null (reading 'map')#[39m#[38;5;3m
+80986ms#[39m
TypeError: Cannot read properties of null (reading 'map')
at UserService.updateTempUser
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:474:132)
at UserController.updateTemp
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/controller/
user.controller.ts:210:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919481451989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56333"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2235566,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Aie-s65ASpgB3qTAe2zFCQv',
'x-fb-trace-id': 'EFpBB7wtZIZ',
'x-fb-rev': '1006623543',
'x-fb-debug':
'QfoFDdU38mK8I3fIaT5dutx7gsw+RtQ21qQ/tfV7KnwfacHLM5SDNq50I3Vlh0fcoj6QFGvlkIjXvcFbpE
eg5A==',
date: 'Thu, 17 Nov 2022 17:20:52 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919481451989","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"56333"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 218907 - #[39m11/17/2022, 8:11:37 PM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +11140239ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916203734403","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29246"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2354365,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'ATg4mj8HHseC2aOpWZX4DN_',
'x-fb-trace-id': 'GVfVtzp9yoq',
'x-fb-rev': '1006626557',
'x-fb-debug':
'EeiFk9nKPKQJWvqFRhkAZTibHOvZItjHWoyjDpP1yyT2bEPw9wJyTyL6euFYvp5s1QJC3xNb9bziFu+kxm
tYWA==',
date: 'Fri, 18 Nov 2022 02:11:37 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916203734403","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"29246"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/18/2022, 2:45:45 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +23647817ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917987458087","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"64257"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2382112,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A124uokXG4HX5Nv-l7aGUqf',
'x-fb-trace-id': 'HM+xcEMPhY0',
'x-fb-rev': '1006627354',
'x-fb-debug':
'eekmnM7O2RPsbWyI8jbRziXro1WhYdjTFaANLq5HXzhd7E9EhEzDErEyEAaObLwbXC04yHEir8xlFwVniL
qiew==',
date: 'Fri, 18 Nov 2022 03:23:35 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917987458087","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"64257"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/18/2022, 3:36:11 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mduplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"#[39m#[38;5;3m +3026014ms#[39m
QueryFailedError: duplicate key value violates unique constraint
"UQ_f187fcd151cb766f5a466d07990"
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
FirebaseMessagingError: Too many registration tokens provided in a single request
to sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.
at FirebaseMessagingError.FirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor]
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:90:28)
at new FirebaseMessagingError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/utils/
error.js:279:16)
at Messaging.validateRegistrationTokens
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/messaging/
messaging.js:791:23)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/firebase-admin/lib/
messaging/messaging.js:350:19
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errorInfo: {
code: 'messaging/invalid-recipient',
message: 'Too many registration tokens provided in a single request to
sendToDevice(). Batch your requests to contain no more than 1,000 registration
tokens per request.'
},
codePrefix: 'messaging'
}
#[31m[Nest] 218907 - #[39m11/18/2022, 5:06:14 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of null (reading 'map')#[39m#[38;5;3m
+5403703ms#[39m
TypeError: Cannot read properties of null (reading 'map')
at UserService.updateTempUser
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:474:132)
at UserController.updateTemp
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/controller/
user.controller.ts:210:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 218907 - #[39m11/18/2022, 5:07:47 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of null (reading 'map')#[39m#[38;5;3m
+92801ms#[39m
TypeError: Cannot read properties of null (reading 'map')
at UserService.updateTempUser
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:474:132)
at UserController.updateTemp
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/controller/
user.controller.ts:210:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 218907 - #[39m11/18/2022, 5:13:16 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of null (reading 'map')#[39m#[38;5;3m
+328341ms#[39m
TypeError: Cannot read properties of null (reading 'map')
at UserService.updateTempUser
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:474:132)
at UserController.updateTemp
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/controller/
user.controller.ts:210:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
#[31m[Nest] 218907 - #[39m11/18/2022, 5:18:26 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mCannot read properties of null (reading 'map')#[39m#[38;5;3m
+310205ms#[39m
TypeError: Cannot read properties of null (reading 'map')
at UserService.updateTempUser
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/services/
user.service.ts:474:132)
at UserController.updateTemp
(/home/ubuntu/SunoKitaab-APIs-Build/src/modules/core/users/controller/
user.controller.ts:210:33)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:38:29
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
execution-context.js:46:28
at /home/ubuntu/SunoKitaab-APIs-Build/node_modules/@nestjs/core/router/router-
proxy.js:9:17
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919660654397","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"66483"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2440858,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AAGyNTiL0wjSJDuTG0O_fwJ',
'x-fb-trace-id': 'EoK+sNgtbnf',
'x-fb-rev': '1006627630',
'x-fb-debug':
'UZzHLjvRsnXE9vPBmvz/RnHm8/eSqA/8cLjbssahR9S0NOUxTJ/n/pv2/X8pAHZoIFceMGn9IyEYEq949b
GJ7A==',
date: 'Fri, 18 Nov 2022 05:27:01 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919660654397","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"66483"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
#[31m[Nest] 218907 - #[39m11/18/2022, 5:34:17 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +951246ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/18/2022, 5:34:19 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +2448ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
#[31m[Nest] 218907 - #[39m11/18/2022, 5:36:22 AM #[38;5;3m[ExceptionsHandler]
#[39m#[31mcolumn applicable_on.name does not exist#[39m#[38;5;3m +122503ms#[39m
QueryFailedError: column applicable_on.name does not exist
at QueryFailedError.TypeORMError [as constructor] (/home/ubuntu/SunoKitaab-
APIs-Build/src/error/TypeORMError.ts:7:9)
at new QueryFailedError
(/home/ubuntu/SunoKitaab-APIs-Build/src/error/QueryFailedError.ts:9:9)
at PostgresQueryRunner.<anonymous>
(/home/ubuntu/SunoKitaab-APIs-Build/src/driver/postgres/PostgresQueryRunner.ts:247:
19)
at step (/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:143:27)
at Object.throw
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:124:57)
at rejected
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/tslib/tslib.js:115:69)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"34541"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2466922,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AWbdwMLKoY0jGwMbSYodXlW',
'x-fb-trace-id': 'D4Wycy9sF/M',
'x-fb-rev': '1006627630',
'x-fb-debug':
'11xNraLFZNCmbrnaA9mr5SC/19t8FQ5jiBcPiCXJ+b45lnG51CWjaA5+GkT9ezw4HR+gDq01nHTstWCGwX
kifg==',
date: 'Fri, 18 Nov 2022 06:21:59 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"34541"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919523263693","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"69316"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2472906,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'A0GRwL_OAdhJSKtXZcgiOK-',
'x-fb-trace-id': 'DUZLl/TA+nW',
'x-fb-rev': '1006628136',
'x-fb-debug':
'rXMMC3PT7zOqdHONQo9uQC9+ucA3xig9N18Alk3Oh3pqjVmu0hnMrTehbxr7Au7Xm0509UVpR8zO+c3NQU
mfJw==',
date: 'Fri, 18 Nov 2022 06:37:27 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+919523263693","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"69316"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917819852650","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57253"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2488691,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AM_2eht3AC_bR6iZZKF8QKB',
'x-fb-trace-id': 'BN8SoNHofvK',
'x-fb-rev': '1006628136',
'x-fb-debug':
'g1N2C2q1Uvv2eRPMW01kx6gOgKgzdkodmaUuJsIM82njKGvMFJxAlBy2bRY+D+jLBKJEbJfoWDa0TgH3jn
7tQQ==',
date: 'Fri, 18 Nov 2022 07:13:49 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+917819852650","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"57253"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52941"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2496608,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AtlcplML7xEadhC89z3gwlr',
'x-fb-trace-id': 'EKzkYwhmGEl',
'x-fb-rev': '1006628136',
'x-fb-debug':
'gym0hanGz/b4lAYYkTlYE5gFXsQhXIxZS2wwyOyfEvHZT7JwaH80Fws9bPwkbOkZh1Z0J+YaAHai1mB/
x7eIaQ==',
date: 'Fri, 18 Nov 2022 07:33:58 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"52941"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23868"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2497503,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 38,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'Ai5QOj5YfmsyBvPOzSf4cMq',
'x-fb-trace-id': 'BP00kehwsbk',
'x-fb-rev': '1006628136',
'x-fb-debug':
'+qfmQg20nQivkShOdiYSTlbOxQQXKBrULYbRAMBv6pl32bb9NImLQzggNrnNF5hDtc6P2SJLY8eODo9OVo
SotA==',
date: 'Fri, 18 Nov 2022 07:37:14 GMT',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"23868"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61489"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'graph.facebook.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'graph.facebook.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 2498491,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 40,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 207,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://graph.facebook.com/v15.0/108153368760647/messages',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
authorization: [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
vary: 'Origin',
'x-business-use-case-usage': '{"110028618570394":
[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time
_to_regain_access":0}]}',
'x-fb-rlafr': '0',
'content-type': 'application/json',
'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#100)
Invalid parameter"',
'access-control-allow-origin': '*',
'facebook-api-version': 'v15.0',
'strict-transport-security': 'max-age=15552000; preload',
pragma: 'no-cache',
'cache-control': 'no-store',
expires: 'Sat, 01 Jan 2000 00:00:00 GMT',
'x-fb-request-id': 'AYqrHL_AsEaUw3Z4U4-ICZW',
'x-fb-trace-id': 'A//aV0WfLIo',
'x-fb-rev': '1006628136',
'x-fb-debug':
'sCOygn6+0erex9blu66/mKbr6hGD5J87uwKJPgqEdPFLo+/ak7iQagG/np7ZcVLRMXhdoYKX41AhpBnbLX
3X/Q==',
date: 'Fri, 18 Nov 2022 07:40:47 GMT',
priority: 'u=3,i',
'alt-svc': 'h3=":443"; ma=86400',
connection: 'close',
'content-length': '222'
},
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"61489"}]}]}}',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /v15.0/108153368760647/messages HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Authorization: Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 207\r\n' +
'Host: graph.facebook.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/v15.0/108153368760647/messages',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'graph.facebook.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: [Object] }
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Error: Request failed with status code 400
at createError
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/createError.js:16:1
5)
at settle
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd
(/home/ubuntu/SunoKitaab-APIs-Build/node_modules/axios/lib/adapters/http.js:260:11)
at IncomingMessage.emit (node:events:538:35)
at IncomingMessage.emit (node:domain:475:12)
at endReadableNT (node:internal/streams/readable:1342:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
config: {
url: 'https://graph.facebook.com/v15.0/108153368760647/messages',
method: 'post',
data:
'{"messaging_product":"whatsapp","to":"+916280971341","type":"template","template":
{"name":"auth_otp","language":{"code":"en_US"},"components":
[{"type":"body","parameters":[{"type":"text","text":"50433"}]}]}}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Authorization: 'Bearer
EAAEkJzpGf6cBAI4y6ZAZCorNxOmn5QlpFz9uofsp6vMYj9RPuqYUgJLQ72zd8nrq6XFB4LFA3FG2rTdT1P
t53l8o2VDNmNemoY90abjUZBVAMS61cZC9zzglwcpXec7IVxGa8W7A9Uj1dopLzmt28ws7kNwALZBCUGB5Y
rKFOZAUNT19BbLLmv',
'User-Agent': 'axios/0.21.1',
'Content-Length': 207
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstabl

You might also like