From 37452048f2efcabebb960209b213dce786ed3986 Mon Sep 17 00:00:00 2001 From: Mahesh Kumar Gangula Date: Tue, 21 May 2024 11:08:13 +0530 Subject: [PATCH 1/8] fix: time logging for each stage. --- output.log | 630 ++++++++++++++++++++++ src/controllers/bap.trigger.controller.ts | 6 +- src/middlewares/jsonParser.middleware.ts | 3 +- src/routes/requests.routes.ts | 38 +- 4 files changed, 671 insertions(+), 6 deletions(-) create mode 100644 output.log diff --git a/output.log b/output.log new file mode 100644 index 0000000..43b2b3f --- /dev/null +++ b/output.log @@ -0,0 +1,630 @@ + +> protocol-server_v2@1.0.0 dev +> nodemon src/app.ts + +[nodemon] 2.0.22 +[nodemon] to restart at any time, enter `rs` +[nodemon] watching path(s): *.* +[nodemon] watching extensions: ts,json +[nodemon] starting `ts-node src/app.ts` +2024-05-20T18:12:49.799Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:12:49.813Z [test] info: MQ Client Connected For: 0.0.0.0 +2024-05-20T18:12:49.825Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:12:49.826Z [test] info: Redis Client Connected For DB: 1 +2024-05-20T18:12:49.826Z [test] info: Lookup Cache Initialized... +2024-05-20T18:12:49.827Z [test] info: Redis Client Connected For DB: 2 +2024-05-20T18:12:49.827Z [test] info: Request Cache Initialized... +2024-05-20T18:12:50.568Z [test] info: Protocol Server started on PORT : 5001 +2024-05-20T18:12:50.569Z [test] info: Protocol Server Started Successfully +2024-05-20T18:12:50.569Z [test] info: Mode: BAP +2024-05-20T18:12:50.569Z [test] info: Gateway Type: CLIENT +2024-05-20T18:14:05.638Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 2 +2024-05-20T18:14:05.642Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:14:05.642Z","message_id":"9bb065eb-1f72-41b9-bcec-ae6f454f89ff","transaction_id":"3a70c34c-e420-4090-91ff-fa3b43838439","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 5 +2024-05-20T18:14:05.644Z [test] info: Building Auth Header + +2024-05-20T18:14:05.647Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716228785 +(expires): 1716232385 +digest: BLAKE-512=nEV2cax6F8QtFk8uOHpnpN5PhV4/J8Zjsb61Fg4EkacSt0WKiNeDcFkMaYb/2076x+SQGkml+wSsTTJN6d5hzw== +*********************************-----*********************************** + +2024-05-20T18:14:05.649Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716228785\",expires=\"1716232385\",headers=\"(created) (expires) digest\",signature=\"gONrO2OY5AHTDduibi+cFBP1u+gz5NZ4KIymqczF0LnS7VQ72FwIHEEcZU2vkLFrxZRJIWempm8YgDvTYshLAg==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:14:05.650Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:14:05.650Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 6 +Cache Not found. Loading.... schemas/core_1.1.0.yaml +### openApiValidatorMiddleware Processing Time: 848 +2024-05-20T18:14:06.499Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:14:06.499Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:14:05.642Z","message_id":"9bb065eb-1f72-41b9-bcec-ae6f454f89ff","transaction_id":"3a70c34c-e420-4090-91ff-fa3b43838439","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:14:13.857Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:14:13.857Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"3a70c34c-e420-4090-91ff-fa3b43838439","message_id":"9bb065eb-1f72-41b9-bcec-ae6f454f89ff","ttl":"PT10M","timestamp":"2024-05-20T18:14:10.162Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=3a70c34c-e420-4090-91ff-fa3b43838439&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 8267 ms +2024-05-20T18:14:35.010Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 1 +2024-05-20T18:14:35.013Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:14:35.013Z","message_id":"1f625e03-0ef5-43cd-bb52-3e5c34627b0b","transaction_id":"fd63a882-6bf5-4904-9fe8-28ebd1f25416","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 2 +2024-05-20T18:14:35.013Z [test] info: Building Auth Header + +2024-05-20T18:14:35.014Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716228815 +(expires): 1716232415 +digest: BLAKE-512=W2eOHVEwI+jWEzMj0mZCK5eQT4Wzr9heF+PnODxcsqnt7+HM2Ova1Td33tme0NmWjqNor9/K+ax+p0UqjODF3A== +*********************************-----*********************************** + +2024-05-20T18:14:35.015Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716228815\",expires=\"1716232415\",headers=\"(created) (expires) digest\",signature=\"UDPUrvAMyyU2rnZL2ueimpLUhIHsC19b2xJ2KMblBMOFaXu9FpiLkSkSZmg98lJb+unhEGzNBOHfP+QONAdECQ==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:14:35.037Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:14:35.038Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 25 +### openApiValidatorMiddleware Processing Time: 778 +2024-05-20T18:14:35.816Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:14:35.817Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:14:35.013Z","message_id":"1f625e03-0ef5-43cd-bb52-3e5c34627b0b","transaction_id":"fd63a882-6bf5-4904-9fe8-28ebd1f25416","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:14:42.631Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:14:42.632Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"fd63a882-6bf5-4904-9fe8-28ebd1f25416","message_id":"1f625e03-0ef5-43cd-bb52-3e5c34627b0b","ttl":"PT10M","timestamp":"2024-05-20T18:14:39.316Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=fd63a882-6bf5-4904-9fe8-28ebd1f25416&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 7692 ms +2024-05-20T18:15:04.409Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 1 +2024-05-20T18:15:04.412Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:15:04.412Z","message_id":"0f7954d1-d46f-46ba-bf2d-b5bc808c5ca9","transaction_id":"c289c8f0-a5a0-4d30-9096-deeff1b9cb3f","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 3 +2024-05-20T18:15:04.413Z [test] info: Building Auth Header + +2024-05-20T18:15:04.413Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716228844 +(expires): 1716232444 +digest: BLAKE-512=3Lt/fp2LhMxjbcSJrMvj4TqukrgDt+C7naj6gzdM2xIO6NSSvtrUSWepGrMI2nGlAAj4D59PsI7K2a+pPcPWMQ== +*********************************-----*********************************** + +2024-05-20T18:15:04.414Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716228844\",expires=\"1716232444\",headers=\"(created) (expires) digest\",signature=\"VlQ9P+tIzWQaRnVFwfD/ZEF6IaRDTkkV6jOcwUuS5Z4nI0L9Adw22/NM59jIxOda3vB70IiCHEZWbxfEwEEWCw==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:15:04.415Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:15:04.415Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 2 +### openApiValidatorMiddleware Processing Time: 767 +2024-05-20T18:15:05.183Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:15:05.183Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:15:04.412Z","message_id":"0f7954d1-d46f-46ba-bf2d-b5bc808c5ca9","transaction_id":"c289c8f0-a5a0-4d30-9096-deeff1b9cb3f","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:15:11.561Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:15:11.561Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"c289c8f0-a5a0-4d30-9096-deeff1b9cb3f","message_id":"0f7954d1-d46f-46ba-bf2d-b5bc808c5ca9","ttl":"PT10M","timestamp":"2024-05-20T18:15:08.238Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=c289c8f0-a5a0-4d30-9096-deeff1b9cb3f&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 7232 ms +[nodemon] restarting due to changes... +[nodemon] starting `ts-node src/app.ts` +2024-05-20T18:16:50.940Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:16:50.954Z [test] info: MQ Client Connected For: 0.0.0.0 +2024-05-20T18:16:50.963Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:16:50.964Z [test] info: Redis Client Connected For DB: 1 +2024-05-20T18:16:50.965Z [test] info: Lookup Cache Initialized... +2024-05-20T18:16:50.965Z [test] info: Redis Client Connected For DB: 2 +2024-05-20T18:16:50.965Z [test] info: Request Cache Initialized... +2024-05-20T18:16:51.705Z [test] info: Protocol Server started on PORT : 5001 +2024-05-20T18:16:51.705Z [test] info: Protocol Server Started Successfully +2024-05-20T18:16:51.705Z [test] info: Mode: BAP +2024-05-20T18:16:51.705Z [test] info: Gateway Type: CLIENT +[nodemon] restarting due to changes... +[nodemon] starting `ts-node src/app.ts` +2024-05-20T18:17:03.789Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:17:03.805Z [test] info: MQ Client Connected For: 0.0.0.0 +2024-05-20T18:17:03.818Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:17:03.819Z [test] info: Redis Client Connected For DB: 1 +2024-05-20T18:17:03.819Z [test] info: Lookup Cache Initialized... +2024-05-20T18:17:03.819Z [test] info: Redis Client Connected For DB: 2 +2024-05-20T18:17:03.820Z [test] info: Request Cache Initialized... +2024-05-20T18:17:04.537Z [test] info: Protocol Server started on PORT : 5001 +2024-05-20T18:17:04.537Z [test] info: Protocol Server Started Successfully +2024-05-20T18:17:04.537Z [test] info: Mode: BAP +2024-05-20T18:17:04.538Z [test] info: Gateway Type: CLIENT +[nodemon] restarting due to changes... +[nodemon] starting `ts-node src/app.ts` +2024-05-20T18:21:53.396Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:21:53.416Z [test] info: MQ Client Connected For: 0.0.0.0 +2024-05-20T18:21:53.428Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:21:53.429Z [test] info: Redis Client Connected For DB: 1 +2024-05-20T18:21:53.429Z [test] info: Lookup Cache Initialized... +2024-05-20T18:21:53.429Z [test] info: Redis Client Connected For DB: 2 +2024-05-20T18:21:53.429Z [test] info: Request Cache Initialized... +2024-05-20T18:21:54.199Z [test] info: Protocol Server started on PORT : 5001 +2024-05-20T18:21:54.199Z [test] info: Protocol Server Started Successfully +2024-05-20T18:21:54.199Z [test] info: Mode: BAP +2024-05-20T18:21:54.199Z [test] info: Gateway Type: CLIENT +[nodemon] restarting due to changes... +[nodemon] starting `ts-node src/app.ts` +2024-05-20T18:21:58.798Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:21:58.816Z [test] info: MQ Client Connected For: 0.0.0.0 +2024-05-20T18:21:58.830Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:21:58.831Z [test] info: Redis Client Connected For DB: 1 +2024-05-20T18:21:58.831Z [test] info: Lookup Cache Initialized... +2024-05-20T18:21:58.831Z [test] info: Redis Client Connected For DB: 2 +2024-05-20T18:21:58.831Z [test] info: Request Cache Initialized... +2024-05-20T18:21:59.638Z [test] info: Protocol Server started on PORT : 5001 +2024-05-20T18:21:59.638Z [test] info: Protocol Server Started Successfully +2024-05-20T18:21:59.638Z [test] info: Mode: BAP +2024-05-20T18:21:59.638Z [test] info: Gateway Type: CLIENT +[nodemon] restarting due to changes... +[nodemon] starting `ts-node src/app.ts` +2024-05-20T18:22:01.990Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:22:02.006Z [test] info: MQ Client Connected For: 0.0.0.0 +2024-05-20T18:22:02.019Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:22:02.020Z [test] info: Redis Client Connected For DB: 1 +2024-05-20T18:22:02.020Z [test] info: Lookup Cache Initialized... +2024-05-20T18:22:02.020Z [test] info: Redis Client Connected For DB: 2 +2024-05-20T18:22:02.021Z [test] info: Request Cache Initialized... +2024-05-20T18:22:02.725Z [test] info: Protocol Server started on PORT : 5001 +2024-05-20T18:22:02.727Z [test] info: Protocol Server Started Successfully +2024-05-20T18:22:02.727Z [test] info: Mode: BAP +2024-05-20T18:22:02.727Z [test] info: Gateway Type: CLIENT +2024-05-20T18:22:10.321Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 1 ms +2024-05-20T18:22:10.324Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:22:10.324Z","message_id":"360427d7-b509-4929-abd8-3e9e36cec054","transaction_id":"a81158c2-12b2-4cca-97ba-7af8648be80e","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 3 ms +2024-05-20T18:22:10.324Z [test] info: Building Auth Header + +2024-05-20T18:22:10.325Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716229270 +(expires): 1716232870 +digest: BLAKE-512=1Pt/yIduRQZh9PlkiR10KYkA8Vif1SbDjQOKK5EcUVghvpxR/8MXMhMTO47rfLzoAKlmvF+AipCRbjC7Nlyeuw== +*********************************-----*********************************** + +2024-05-20T18:22:10.328Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229270\",expires=\"1716232870\",headers=\"(created) (expires) digest\",signature=\"BmP6tJY4kTX9qxakrAVni6ZhplBbbDUqpVE97D17pqY5UQwaw5FU+mWHbVFrLIssCMvkUsde+IxH/wRA2K6PBw==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:22:10.333Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:22:10.333Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 9 ms +Cache Not found. Loading.... schemas/core_1.1.0.yaml +### openApiValidatorMiddleware Processing Time: 743 ms +2024-05-20T18:22:11.078Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:22:11.078Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:22:10.324Z","message_id":"360427d7-b509-4929-abd8-3e9e36cec054","transaction_id":"a81158c2-12b2-4cca-97ba-7af8648be80e","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:22:18.111Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:22:18.112Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"a81158c2-12b2-4cca-97ba-7af8648be80e","message_id":"360427d7-b509-4929-abd8-3e9e36cec054","ttl":"PT10M","timestamp":"2024-05-20T18:22:14.615Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=a81158c2-12b2-4cca-97ba-7af8648be80e&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 7833 ms +2024-05-20T18:27:58.635Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 2 ms +2024-05-20T18:27:58.638Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:27:58.638Z","message_id":"86898c45-a500-482b-9286-26deced58a09","transaction_id":"26c0272f-85f6-4f1f-a6ea-de52563313fb","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 2 ms +2024-05-20T18:27:58.638Z [test] info: Building Auth Header + +2024-05-20T18:27:58.639Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716229618 +(expires): 1716233218 +digest: BLAKE-512=nVwpKV5TOdj20fJfA4lQjLDBiDsEnHgTrhMf9yfeqME4Zwv3490tdSIvvR+96mHSv9DtkNvbFaOGoPsAUNgcgw== +*********************************-----*********************************** + +2024-05-20T18:27:58.639Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229618\",expires=\"1716233218\",headers=\"(created) (expires) digest\",signature=\"hjcj7cd3QbunwDN8KuLzco/M91DZEaXwv1KAunq2ncFfxZlMf4MJX0QOVjdLB0RdFZF254qSaB0tCdwfmqT6AA==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:27:58.652Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:27:58.652Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 14 ms +### openApiValidatorMiddleware Processing Time: 801 ms +2024-05-20T18:27:59.455Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:27:59.455Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:27:58.638Z","message_id":"86898c45-a500-482b-9286-26deced58a09","transaction_id":"26c0272f-85f6-4f1f-a6ea-de52563313fb","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:28:07.424Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:28:07.424Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"26c0272f-85f6-4f1f-a6ea-de52563313fb","message_id":"86898c45-a500-482b-9286-26deced58a09","ttl":"PT10M","timestamp":"2024-05-20T18:28:03.619Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=26c0272f-85f6-4f1f-a6ea-de52563313fb&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 8860 ms +2024-05-20T18:29:04.740Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 2 ms +2024-05-20T18:29:04.743Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:29:04.743Z","message_id":"483fa841-cf79-4d5f-a281-b9dee201744d","transaction_id":"4c07dc00-8020-47cc-9e57-a49a165377dd","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 1 ms +2024-05-20T18:29:04.743Z [test] info: Building Auth Header + +2024-05-20T18:29:04.744Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716229684 +(expires): 1716233284 +digest: BLAKE-512=jpK+1c0SKHTqzy/Ek6Jy8mN9Gmz/DUCakketTlNwRomIhVsXu+X5/L0kj66srRfE2/AkLpLp4Dc7NtTa4CQDmQ== +*********************************-----*********************************** + +2024-05-20T18:29:04.744Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229684\",expires=\"1716233284\",headers=\"(created) (expires) digest\",signature=\"n0wMsEZHJUavWyUQpDxZZG0IkGUQFE2HOXkfCpi4flvhFccfdPV2xi5xH1A/5Be2HKjZAru0rIS8SanxH09PCw==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:29:04.745Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:29:04.745Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 2 ms +### openApiValidatorMiddleware Processing Time: 767 ms +2024-05-20T18:29:05.512Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:29:05.512Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:29:04.743Z","message_id":"483fa841-cf79-4d5f-a281-b9dee201744d","transaction_id":"4c07dc00-8020-47cc-9e57-a49a165377dd","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:29:12.582Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:29:12.582Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"4c07dc00-8020-47cc-9e57-a49a165377dd","message_id":"483fa841-cf79-4d5f-a281-b9dee201744d","ttl":"PT10M","timestamp":"2024-05-20T18:29:08.935Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=4c07dc00-8020-47cc-9e57-a49a165377dd&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 7870 ms +2024-05-20T18:30:02.735Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 3 ms +2024-05-20T18:30:02.743Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:30:02.743Z","message_id":"473eaa16-9939-46e3-bdf3-72e2680b4d60","transaction_id":"d6b29173-b804-49a3-a21d-f5304d21fdd7","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 5 ms +2024-05-20T18:30:02.744Z [test] info: Building Auth Header + +2024-05-20T18:30:02.745Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716229742 +(expires): 1716233342 +digest: BLAKE-512=vDJyVfpGePr20aANqqefyl58mdi/fQXmm8btXovIfx+O7IRVxH20phSm7vE5MtkNTiUohgJ0rLXwqdLy4yi/Ow== +*********************************-----*********************************** + +2024-05-20T18:30:02.745Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229742\",expires=\"1716233342\",headers=\"(created) (expires) digest\",signature=\"HgPhgmuMDfvnK2oit/1i23dcGr5heVf8QboLZ9BpvclKC/1BPy+/SX0654JEChq+vxaDzTizVnoE7z+mLReODg==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:30:02.762Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:30:02.762Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 19 ms +### openApiValidatorMiddleware Processing Time: 927 ms +2024-05-20T18:30:03.693Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:30:03.693Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:30:02.743Z","message_id":"473eaa16-9939-46e3-bdf3-72e2680b4d60","transaction_id":"d6b29173-b804-49a3-a21d-f5304d21fdd7","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:30:10.219Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:30:10.219Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"d6b29173-b804-49a3-a21d-f5304d21fdd7","message_id":"473eaa16-9939-46e3-bdf3-72e2680b4d60","ttl":"PT10M","timestamp":"2024-05-20T18:30:07.272Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=d6b29173-b804-49a3-a21d-f5304d21fdd7&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 7526 ms +2024-05-20T18:31:50.968Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 2 ms +2024-05-20T18:31:50.971Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:31:50.971Z","message_id":"c848cb4d-ebc1-4b12-8bf1-de732bb2b558","transaction_id":"e0ccc7c4-833c-4a7b-91b4-9d06b3b778e3","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 2 ms +2024-05-20T18:31:50.971Z [test] info: Building Auth Header + +2024-05-20T18:31:50.972Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716229850 +(expires): 1716233450 +digest: BLAKE-512=7EjQOo6/N2abTISVGifSlJwP5v2+d6NrdYTxEYmaSkK08Wd0hfczH7/t4RoTS+hIVc66ePUjurKofyyPOBZ11w== +*********************************-----*********************************** + +2024-05-20T18:31:50.972Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229850\",expires=\"1716233450\",headers=\"(created) (expires) digest\",signature=\"W2GU6j3iGCXpkpg2OMrU2R3KDXGdBQ/GuJ2P+O3/yDe0/7Jutq6Vt64axZuK9T0d1YUBT3yHXzy6Y5QMPt7JCA==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:31:50.973Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:31:50.973Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 3 ms +### openApiValidatorMiddleware Processing Time: 760 ms +2024-05-20T18:31:51.736Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:31:51.736Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:31:50.971Z","message_id":"c848cb4d-ebc1-4b12-8bf1-de732bb2b558","transaction_id":"e0ccc7c4-833c-4a7b-91b4-9d06b3b778e3","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:31:59.024Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:31:59.024Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"e0ccc7c4-833c-4a7b-91b4-9d06b3b778e3","message_id":"c848cb4d-ebc1-4b12-8bf1-de732bb2b558","ttl":"PT10M","timestamp":"2024-05-20T18:31:55.318Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=e0ccc7c4-833c-4a7b-91b4-9d06b3b778e3&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 8062 ms +2024-05-20T18:33:10.455Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 2 ms +2024-05-20T18:33:10.458Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:33:10.458Z","message_id":"e7afa744-48f0-455b-8cea-a4f0fa368be9","transaction_id":"67450df3-ceae-420e-a67f-70b3f587e586","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 1 ms +2024-05-20T18:33:10.458Z [test] info: Building Auth Header + +2024-05-20T18:33:10.459Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716229930 +(expires): 1716233530 +digest: BLAKE-512=oI8PnutuSpJRxKW+1/uKlSlca4ooHjzjCqBB+AeiHl1C9l6MdJDNe6GfmcxgHY8bolDOFdDK+behBcNr51cnqw== +*********************************-----*********************************** + +2024-05-20T18:33:10.459Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229930\",expires=\"1716233530\",headers=\"(created) (expires) digest\",signature=\"BQ6KuZYYm9kv2hKIZbJV31I1atiXMZBvGLgXG/YwpvvFR4IkREfPhr4TrHtrzto+VOhzQ57NlloM1xVGUL+SAQ==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:33:10.459Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:33:10.460Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 2 ms +### openApiValidatorMiddleware Processing Time: 777 ms +2024-05-20T18:33:11.238Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:33:11.238Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:33:10.458Z","message_id":"e7afa744-48f0-455b-8cea-a4f0fa368be9","transaction_id":"67450df3-ceae-420e-a67f-70b3f587e586","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} + +2024-05-20T18:33:17.702Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:33:17.703Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"67450df3-ceae-420e-a67f-70b3f587e586","message_id":"e7afa744-48f0-455b-8cea-a4f0fa368be9","ttl":"PT10M","timestamp":"2024-05-20T18:33:14.738Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=67450df3-ceae-420e-a67f-70b3f587e586&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 7312 ms +[nodemon] restarting due to changes... +[nodemon] starting `ts-node src/app.ts` +2024-05-20T18:33:52.424Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:33:52.435Z [test] info: MQ Client Connected For: 0.0.0.0 +2024-05-20T18:33:52.443Z [test] info: Mongo Client Connected For DB: ps +2024-05-20T18:33:52.444Z [test] info: Redis Client Connected For DB: 1 +2024-05-20T18:33:52.444Z [test] info: Lookup Cache Initialized... +2024-05-20T18:33:52.445Z [test] info: Redis Client Connected For DB: 2 +2024-05-20T18:33:52.445Z [test] info: Request Cache Initialized... +2024-05-20T18:33:53.196Z [test] info: Protocol Server started on PORT : 5001 +2024-05-20T18:33:53.196Z [test] info: Protocol Server Started Successfully +2024-05-20T18:33:53.196Z [test] info: Mode: BAP +2024-05-20T18:33:53.196Z [test] info: Gateway Type: CLIENT +2024-05-20T18:34:33.451Z [test] info: Request from IP address ===> ::1 + Req From URL==> undefined + + +### jsonCompressorMiddleware Processing Time: 2 ms +2024-05-20T18:34:33.455Z [test] info: BAP Context created at BAP-CLIENT :==> +{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:34:33.455Z","message_id":"0518e573-6844-4a4f-93af-fb47a041da07","transaction_id":"e32ee33c-b714-40c7-bf1a-cb0d40403cbd","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} + +### contextBuilderMiddleware Processing Time: 4 ms +2024-05-20T18:34:33.456Z [test] info: Building Auth Header + +2024-05-20T18:34:33.459Z [test] info: +*********************************-----*********************************** + Signing String:==> +(created): 1716230013 +(expires): 1716233613 +digest: BLAKE-512=pPO33zLzpeL1rm9g4o7OzURove65ld0QnHAl7lYj2XK1HQcWbUg2dUSAMuJu2IvH0dSFE0Vio2jdnfd8MA8zDA== +*********************************-----*********************************** + +2024-05-20T18:34:33.460Z [test] info: Axios Config for Request from bap client:==> +{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716230013\",expires=\"1716233613\",headers=\"(created) (expires) digest\",signature=\"FvtexGNFszidqqlzyPU/AsCJYsDeG+zq0bSYQr2rMz04xt+3+99n3WdXT1k985sTxchHgoeSfokD8b3yuADJDg==\""},"timeout":3000} + + +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 +redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +2024-05-20T18:34:33.474Z [test] info: +Returning response from Cache at BAP-CLIENT + +2024-05-20T18:34:33.474Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] +### authBuilderMiddleware Processing Time: 18 ms +### openApiValidatorMiddleware Processing Time: 0 ms +2024-05-20T18:34:33.477Z [test] info: Sending message to outbox queue at BAP-CLIENT + + +2024-05-20T18:34:33.477Z [test] info: Request from client: + {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:34:33.455Z","message_id":"0518e573-6844-4a4f-93af-fb47a041da07","transaction_id":"e32ee33c-b714-40c7-bf1a-cb0d40403cbd","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}}}]}}} + +2024-05-20T18:34:40.407Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue +2024-05-20T18:34:40.407Z [test] info: Response from BPP NETWORK: + {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"e32ee33c-b714-40c7-bf1a-cb0d40403cbd","message_id":"0518e573-6844-4a4f-93af-fb47a041da07","ttl":"PT10M","timestamp":"2024-05-20T18:34:37.572Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=e32ee33c-b714-40c7-bf1a-cb0d40403cbd&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} + + +### On res finish Processing Time: 7055 ms +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 +Started syncing telemetry... +Stored api data size: 0 +Stored metric data size: 0 +Stored audit data size: 0 +Stored raw data size: 0 diff --git a/src/controllers/bap.trigger.controller.ts b/src/controllers/bap.trigger.controller.ts index 579be4f..9d80f8b 100644 --- a/src/controllers/bap.trigger.controller.ts +++ b/src/controllers/bap.trigger.controller.ts @@ -29,7 +29,8 @@ export const bapClientTriggerHandler = async ( req: Request, res: Response<{}, Locals>, next: NextFunction, - action: RequestActions + action: RequestActions, + startTime: number ) => { try { const bpp_id: string | undefined = req.body.context.bpp_id; @@ -75,6 +76,9 @@ export const bapClientTriggerHandler = async ( req.body.context ); } + res.on("finish", async () => { + console.log(`### On res finish Processing Time: ${Date.now() - startTime} ms`); + }); } catch (err) { console.log("Error Occured at bapClientTriggerHandler===>", err); let exception: Exception | null = null; diff --git a/src/middlewares/jsonParser.middleware.ts b/src/middlewares/jsonParser.middleware.ts index e18ab74..45c0e3c 100644 --- a/src/middlewares/jsonParser.middleware.ts +++ b/src/middlewares/jsonParser.middleware.ts @@ -5,7 +5,8 @@ import logger from "../utils/logger.utils"; export async function jsonCompressorMiddleware( req: Request, res: Response<{}, Locals>, - next: NextFunction + next: NextFunction, + startTime: number = Date.now() ) { // Here we are intentionally converting the raw body to req.body. // As we need to avoid the signature that can be caused due to the fact that diff --git a/src/routes/requests.routes.ts b/src/routes/requests.routes.ts index 061e890..721d7cc 100644 --- a/src/routes/requests.routes.ts +++ b/src/routes/requests.routes.ts @@ -23,9 +23,15 @@ import fs from "fs"; import path from "path"; import { LogLevelEnum } from "../utils/logger.utils"; import { onAPI } from "../utils/telemetry.utils"; +import { start } from "repl"; export const requestsRouter = Router(); +export async function executionTime(req: Request, res: Response<{}, Locals>, next: NextFunction, action: string, startTime: number, middlewareFn: Function) { + await middlewareFn + console.log(`### Time to process:`, Date.now() - startTime); +} + requestsRouter.get("/logs", (req, res) => { try { const logLevel: LogLevelEnum = req?.query?.type as LogLevelEnum; @@ -57,20 +63,44 @@ if ( Object.keys(RequestActions).forEach((action) => { if (requestActions[action as RequestActions]) { // requestsRouter.post(`/${action}`, jsonCompressorMiddleware, contextBuilderMiddleware, authBuilderMiddleware, openApiValidatorMiddleware, bapClientTriggerHandler); + let startTime = Date.now(); + let prevMWTime = Date.now(); + let currentTime = Date.now(); requestsRouter.post( `/${action}`, - jsonCompressorMiddleware, + async(req: Request, res: Response<{}, Locals>, next: NextFunction) => { + startTime = currentTime = Date.now(); + prevMWTime = currentTime; + await jsonCompressorMiddleware(req, res, next); + }, async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { + currentTime = Date.now(); + console.log(`### jsonCompressorMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); + prevMWTime = currentTime; await contextBuilderMiddleware(req, res, next, action); }, - authBuilderMiddleware, - openApiValidatorMiddleware, async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { + currentTime = Date.now(); + console.log(`### contextBuilderMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); + prevMWTime = currentTime; + await authBuilderMiddleware(req, res, next); + }, + async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { + currentTime = Date.now(); + console.log(`### authBuilderMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); + prevMWTime = currentTime; + // await openApiValidatorMiddleware(req, res, next); + next(); + }, + async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { + currentTime = Date.now(); + console.log(`### openApiValidatorMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); await bapClientTriggerHandler( req, res, next, - action as RequestActions + action as RequestActions, + startTime ); } ); From 0cdaa1e8a1b25320943a96d32f16dbdc6636685d Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Tue, 21 May 2024 15:21:49 +0530 Subject: [PATCH 2/8] enhanced async code instead of waiting for API response --- src/controllers/bap.trigger.controller.ts | 93 ++++++++++++++--------- src/utils/becknRequester.utils.ts | 28 +------ 2 files changed, 61 insertions(+), 60 deletions(-) diff --git a/src/controllers/bap.trigger.controller.ts b/src/controllers/bap.trigger.controller.ts index 9d80f8b..d173c07 100644 --- a/src/controllers/bap.trigger.controller.ts +++ b/src/controllers/bap.trigger.controller.ts @@ -110,7 +110,6 @@ export const bapClientTriggerSettler = async ( const context = JSON.parse(JSON.stringify(requestBody.context)); const axios_config = await createAuthHeaderConfig(requestBody); - const bpp_id = requestBody.context.bpp_id; const bpp_uri = requestBody.context.bpp_uri; const action = requestBody.context.action; @@ -126,27 +125,54 @@ export const bapClientTriggerSettler = async ( for (let i = 0; i < subscribers!.length; i++) { subscribers![i].subscriber_url = bpp_uri; } - - response = await callNetwork( + callNetwork( subscribers!, requestBody, axios_config, action - ); + ).then((response) => { + errorHandler(response, requestBody, action, context); + }); } else { const subscribers = await registryLookup({ type: NetworkPaticipantType.BG, domain: requestBody.context.domain }); - response = await callNetwork( + callNetwork( subscribers!, requestBody, axios_config, action + ).then((response) => { + errorHandler(response, requestBody, action, context); + }); + } + + return; + } catch (err) { + let exception: Exception | null = null; + if (err instanceof Exception) { + exception = err; + } else { + exception = new Exception( + ExceptionType.Request_Failed, + "BAP Request Failed at bapClientTriggerSettler", + 500, + err ); } + logger.error(exception); + } +}; + + +const errorHandler = async(response:any, requestBody:any, action:any, context:any) => { + try{ + logger.info( + `Result : Request Successful \nStatus: ${response.status} \nData : ${response.data}` + ); if ( response.status == 200 || response.status == 202 || @@ -156,42 +182,39 @@ export const bapClientTriggerSettler = async ( const additionalCustomAttrsConfig = getConfig().app.telemetry.messageProperties; const additionalCustomAttrs = customAttributes(requestBody, additionalCustomAttrsConfig); telemetrySDK.onApi({ data: { attributes: { "http.status.code": response.status, ...additionalCustomAttrs } } })(requestBody, response); - return; - } - - switch (getConfig().client.type) { - case ClientConfigType.synchronous: { - const message_id = requestBody.context.message_id; - await SyncCache.getInstance().recordError( - message_id, - action as RequestActions, - { + } else { + switch (getConfig().client.type) { + case ClientConfigType.synchronous: { + const message_id = requestBody.context.message_id; + await SyncCache.getInstance().recordError( + message_id, + action as RequestActions, + { + // TODO: change this error code. + code: 651641, + type: BecknErrorType.coreError, + message: "Network Participant Request Failed...", + data: [response] + } + ); + break; + } + case ClientConfigType.messageQueue: { + // TODO: Implement message queue. + break; + } + case ClientConfigType.webhook: { + await errorCallback(context, { // TODO: change this error code. code: 651641, type: BecknErrorType.coreError, message: "Network Participant Request Failed...", data: [response] - } - ); - break; - } - case ClientConfigType.messageQueue: { - // TODO: Implement message queue. - break; - } - case ClientConfigType.webhook: { - await errorCallback(context, { - // TODO: change this error code. - code: 651641, - type: BecknErrorType.coreError, - message: "Network Participant Request Failed...", - data: [response] - }); - break; + }); + break; + } } } - - return; } catch (err) { let exception: Exception | null = null; if (err instanceof Exception) { @@ -207,4 +230,4 @@ export const bapClientTriggerSettler = async ( logger.error(exception); } -}; +}; \ No newline at end of file diff --git a/src/utils/becknRequester.utils.ts b/src/utils/becknRequester.utils.ts index 49f08d8..0184ff9 100644 --- a/src/utils/becknRequester.utils.ts +++ b/src/utils/becknRequester.utils.ts @@ -15,16 +15,10 @@ export const makeBecknRequest = async ( ): Promise => { try { const requestURL = combineURLs(subscriberUrl, `/${action}`); - - const response = await axios.post(requestURL, body, { + return axios.post(requestURL, body, { ...axios_config, timeout: 10000 }); - - return { - data: JSON.stringify(response.data), - status: response.status - }; } catch (error) { console.log("Error at Make Beckn Request=====>", error); let response: BecknResponse | undefined; @@ -66,7 +60,6 @@ export async function callNetwork( status: 500 }; } - for (let i = 0; i < subscribers.length; i++) { logger.info(`Attempt Number: ${i + 1} \nAction : ${action}`); logger.info(`sending Response to BAP: ${subscribers[i].subscriber_url}`); @@ -76,28 +69,13 @@ export async function callNetwork( getConfig().app.httpRetryCount, "\n" ); - const response = await makeBecknRequest( + return makeBecknRequest( subscribers[i].subscriber_url, body, axios_config, getConfig().app.httpRetryCount, action - ); - if ( - response.status == 200 || - response.status == 201 || - response.status == 202 || - response.status == 204 - ) { - logger.info( - `Result : Request Successful \nStatus: ${response.status} \nData : ${response.data} \nSubscriber URL: ${subscribers[i].subscriber_url}` - ); - return response; - } - - logger.error( - `Result : Failed call to Subscriber: ${subscribers[i].subscriber_url}, \nStatus: ${response.status}, \nData: ${response.data}` - ); + ) } return { From 773010805d1df0c4141429365c09488471bf75af Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Tue, 21 May 2024 16:32:33 +0530 Subject: [PATCH 3/8] added cache for OpenApiValidator middleware --- package-lock.json | 106 +++++++----------- package.json | 2 +- src/middlewares/schemaValidator.middleware.ts | 36 ++++-- 3 files changed, 70 insertions(+), 74 deletions(-) diff --git a/package-lock.json b/package-lock.json index 94e6133..53534f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "cors": "^2.8.5", "dotenv": "^16.4.1", "express": "^4.18.1", - "express-openapi-validator": "^4.13.8", + "express-openapi-validator": "^5.1.6", "ioredis": "^5.0.6", "libsodium-wrappers": "^0.7.9", "lodash": "^4.17.21", @@ -57,9 +57,9 @@ } }, "node_modules/@apidevtools/json-schema-ref-parser": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz", - "integrity": "sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", "dependencies": { "@jsdevtools/ono": "^7.1.3", "@types/json-schema": "^7.0.6", @@ -1621,7 +1621,6 @@ "version": "8.12.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", @@ -1633,6 +1632,35 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, "node_modules/amqplib": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.10.3.tgz", @@ -2708,44 +2736,25 @@ } }, "node_modules/express-openapi-validator": { - "version": "4.13.8", - "resolved": "https://registry.npmjs.org/express-openapi-validator/-/express-openapi-validator-4.13.8.tgz", - "integrity": "sha512-89/sdkq+BKBuIyykaMl/vR9grFc3WFUPTjFo0THHbu+5g+q8rA7fKeoMfz+h84yOQIBcztmJ5ZJdk5uhEls31A==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/express-openapi-validator/-/express-openapi-validator-5.1.6.tgz", + "integrity": "sha512-CF24Pef5uThjdsCbjo1UP2mYx2YCkQl1HFoikCFFafFpZBCZ0YErD/RbqlcnKbKM9tMwXZsjAuuO84b2hmdF4g==", "dependencies": { + "@apidevtools/json-schema-ref-parser": "^9.1.2", "@types/multer": "^1.4.7", - "ajv": "^6.12.6", - "content-type": "^1.0.4", - "json-schema-ref-parser": "^9.0.9", + "ajv": "^8.11.2", + "ajv-draft-04": "^1.0.0", + "ajv-formats": "^2.1.1", + "content-type": "^1.0.5", + "json-schema-traverse": "^1.0.0", "lodash.clonedeep": "^4.5.0", "lodash.get": "^4.4.2", - "lodash.uniq": "^4.5.0", - "lodash.zipobject": "^4.1.3", "media-typer": "^1.1.0", "multer": "^1.4.5-lts.1", "ono": "^7.1.3", "path-to-regexp": "^6.2.0" } }, - "node_modules/express-openapi-validator/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/express-openapi-validator/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, "node_modules/express-openapi-validator/node_modules/path-to-regexp": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz", @@ -2794,11 +2803,6 @@ "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", "dev": true }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, "node_modules/fast-xml-parser": { "version": "4.2.5", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", @@ -3298,23 +3302,10 @@ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" }, - "node_modules/json-schema-ref-parser": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz", - "integrity": "sha512-qcP2lmGy+JUoQJ4DOQeLaZDqH9qSkeGCK3suKWxJXS82dg728Mn3j97azDMaOUmJAN4uCq91LdPx4K7E8F1a7Q==", - "deprecated": "Please switch to @apidevtools/json-schema-ref-parser", - "dependencies": { - "@apidevtools/json-schema-ref-parser": "9.0.9" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, "node_modules/json5": { "version": "2.2.3", @@ -3418,16 +3409,6 @@ "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==" }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" - }, - "node_modules/lodash.zipobject": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/lodash.zipobject/-/lodash.zipobject-4.1.3.tgz", - "integrity": "sha512-A9SzX4hMKWS25MyalwcOnNoplyHbkNVsjidhTp8ru0Sj23wY9GWBKS8gAIGDSAqeWjIjvE4KBEl24XXAs+v4wQ==" - }, "node_modules/logform": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/logform/-/logform-2.6.0.tgz", @@ -3965,7 +3946,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, "engines": { "node": ">=0.10.0" } diff --git a/package.json b/package.json index 9af117f..b8bbbcc 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "cors": "^2.8.5", "dotenv": "^16.4.1", "express": "^4.18.1", - "express-openapi-validator": "^4.13.8", + "express-openapi-validator": "^5.1.6", "ioredis": "^5.0.6", "libsodium-wrappers": "^0.7.9", "lodash": "^4.17.21", diff --git a/src/middlewares/schemaValidator.middleware.ts b/src/middlewares/schemaValidator.middleware.ts index d898249..8fb98d8 100644 --- a/src/middlewares/schemaValidator.middleware.ts +++ b/src/middlewares/schemaValidator.middleware.ts @@ -1,4 +1,4 @@ -import { NextFunction, Request, Response } from "express"; +import { NextFunction, Request, Response} from "express"; import * as OpenApiValidator from "express-openapi-validator"; import { Exception, ExceptionType } from "../models/exception.model"; import { Locals } from "../interfaces/locals.interface"; @@ -8,6 +8,8 @@ import path from "path"; import { OpenAPIV3 } from 'express-openapi-validator/dist/framework/types'; import YAML from 'yaml'; const protocolServerLevel = `${getConfig().app.mode.toUpperCase()}-${getConfig().app.gateway.mode.toUpperCase()}`; +import express from 'express'; +import logger from "../utils/logger.utils"; // Cache object const apiSpecCache: { [filename: string]: OpenAPIV3.Document } = {}; @@ -15,7 +17,7 @@ const apiSpecCache: { [filename: string]: OpenAPIV3.Document } = {}; // Function to load and cache the API spec const loadApiSpec = (specFile: string): OpenAPIV3.Document => { if (!apiSpecCache[specFile]) { - console.log("Cache Not found. Loading....", specFile) + console.log("Cache Not found loadApiSpec file. Loading....", specFile) const apiSpecYAML = fs.readFileSync(specFile, 'utf8'); const apiSpec = YAML.parse(apiSpecYAML); apiSpecCache[specFile] = apiSpec; @@ -23,6 +25,26 @@ const loadApiSpec = (specFile: string): OpenAPIV3.Document => { return apiSpecCache[specFile]; }; +let cachedOpenApiValidator: express.RequestHandler[] | null = null; + +// Function to initialize and cache the OpenAPI validator middleware +const getOpenApiValidatorMiddleware = (specFile: string) => { + if (!cachedOpenApiValidator) { + console.log("Cache Not found for OpenApiValidator middleware. Loading....", specFile) + const apiSpec = loadApiSpec(specFile); + cachedOpenApiValidator = OpenApiValidator.middleware({ + apiSpec, + validateRequests: true, + validateResponses: false, + $refParser: { + mode: "dereference" + } + }); + } + return cachedOpenApiValidator; +}; + + export const schemaErrorHandler = ( err: any, req: Request, @@ -80,14 +102,8 @@ export const openApiValidatorMiddleware = async ( } } - const openApiValidator = OpenApiValidator.middleware({ - apiSpec: loadApiSpec(specFile), - validateRequests: true, - validateResponses: false, - $refParser: { - mode: "dereference" - } - }); + const openApiValidator = getOpenApiValidatorMiddleware(specFile) + logger.info("openApiValidator middleware initialized", openApiValidator) const walkSubstack = function ( stack: any, From 22d9c475d0f0ca40280b6ad0395981c57ec1adf7 Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Tue, 21 May 2024 17:16:59 +0530 Subject: [PATCH 4/8] Response issue fix --- src/controllers/bap.trigger.controller.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/controllers/bap.trigger.controller.ts b/src/controllers/bap.trigger.controller.ts index d173c07..7924b3e 100644 --- a/src/controllers/bap.trigger.controller.ts +++ b/src/controllers/bap.trigger.controller.ts @@ -131,7 +131,7 @@ export const bapClientTriggerSettler = async ( axios_config, action ).then((response) => { - errorHandler(response, requestBody, action, context); + responseHandler(response, requestBody, action); }); } else { const subscribers = await registryLookup({ @@ -145,7 +145,7 @@ export const bapClientTriggerSettler = async ( axios_config, action ).then((response) => { - errorHandler(response, requestBody, action, context); + responseHandler(response, requestBody, action); }); } @@ -168,10 +168,14 @@ export const bapClientTriggerSettler = async ( }; -const errorHandler = async(response:any, requestBody:any, action:any, context:any) => { +const responseHandler = async(res:any, requestBody:any, action:any) => { try{ + const response = { + data: JSON.stringify(res.data), + status: res.status + }; logger.info( - `Result : Request Successful \nStatus: ${response.status} \nData : ${response.data}` + `Result : Request Successful \nStatus: ${response.status} \nData : ${JSON.stringify(response.data)}` ); if ( response.status == 200 || @@ -180,7 +184,7 @@ const errorHandler = async(response:any, requestBody:any, action:any, context:an ) { // Network Calls Succeeded. const additionalCustomAttrsConfig = getConfig().app.telemetry.messageProperties; - const additionalCustomAttrs = customAttributes(requestBody, additionalCustomAttrsConfig); + const additionalCustomAttrs = customAttributes(requestBody, additionalCustomAttrsConfig); telemetrySDK.onApi({ data: { attributes: { "http.status.code": response.status, ...additionalCustomAttrs } } })(requestBody, response); } else { switch (getConfig().client.type) { @@ -204,6 +208,7 @@ const errorHandler = async(response:any, requestBody:any, action:any, context:an break; } case ClientConfigType.webhook: { + const context = JSON.parse(JSON.stringify(requestBody.context)); await errorCallback(context, { // TODO: change this error code. code: 651641, From be735e366091a9ce58e28194772d28a085c14a87 Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Tue, 21 May 2024 17:20:27 +0530 Subject: [PATCH 5/8] openApiValidatorMiddleware added --- src/routes/requests.routes.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/routes/requests.routes.ts b/src/routes/requests.routes.ts index 721d7cc..754485e 100644 --- a/src/routes/requests.routes.ts +++ b/src/routes/requests.routes.ts @@ -85,13 +85,14 @@ if ( prevMWTime = currentTime; await authBuilderMiddleware(req, res, next); }, - async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { - currentTime = Date.now(); - console.log(`### authBuilderMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); - prevMWTime = currentTime; - // await openApiValidatorMiddleware(req, res, next); - next(); - }, + // async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { + // currentTime = Date.now(); + // console.log(`### authBuilderMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); + // prevMWTime = currentTime; + // // await openApiValidatorMiddleware(req, res, next); + // next(); + // }, + openApiValidatorMiddleware, async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { currentTime = Date.now(); console.log(`### openApiValidatorMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); From 64b004644f5013b3936e00b52c79bfed8adb98c6 Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Tue, 21 May 2024 17:36:23 +0530 Subject: [PATCH 6/8] Removed logs --- src/controllers/bap.trigger.controller.ts | 4 --- src/middlewares/jsonParser.middleware.ts | 3 +- src/middlewares/schemaValidator.middleware.ts | 5 ++- src/routes/requests.routes.ts | 35 ++----------------- 4 files changed, 5 insertions(+), 42 deletions(-) diff --git a/src/controllers/bap.trigger.controller.ts b/src/controllers/bap.trigger.controller.ts index 7924b3e..473eff4 100644 --- a/src/controllers/bap.trigger.controller.ts +++ b/src/controllers/bap.trigger.controller.ts @@ -30,7 +30,6 @@ export const bapClientTriggerHandler = async ( res: Response<{}, Locals>, next: NextFunction, action: RequestActions, - startTime: number ) => { try { const bpp_id: string | undefined = req.body.context.bpp_id; @@ -76,9 +75,6 @@ export const bapClientTriggerHandler = async ( req.body.context ); } - res.on("finish", async () => { - console.log(`### On res finish Processing Time: ${Date.now() - startTime} ms`); - }); } catch (err) { console.log("Error Occured at bapClientTriggerHandler===>", err); let exception: Exception | null = null; diff --git a/src/middlewares/jsonParser.middleware.ts b/src/middlewares/jsonParser.middleware.ts index 45c0e3c..e18ab74 100644 --- a/src/middlewares/jsonParser.middleware.ts +++ b/src/middlewares/jsonParser.middleware.ts @@ -5,8 +5,7 @@ import logger from "../utils/logger.utils"; export async function jsonCompressorMiddleware( req: Request, res: Response<{}, Locals>, - next: NextFunction, - startTime: number = Date.now() + next: NextFunction ) { // Here we are intentionally converting the raw body to req.body. // As we need to avoid the signature that can be caused due to the fact that diff --git a/src/middlewares/schemaValidator.middleware.ts b/src/middlewares/schemaValidator.middleware.ts index 8fb98d8..94f9da4 100644 --- a/src/middlewares/schemaValidator.middleware.ts +++ b/src/middlewares/schemaValidator.middleware.ts @@ -17,7 +17,7 @@ const apiSpecCache: { [filename: string]: OpenAPIV3.Document } = {}; // Function to load and cache the API spec const loadApiSpec = (specFile: string): OpenAPIV3.Document => { if (!apiSpecCache[specFile]) { - console.log("Cache Not found loadApiSpec file. Loading....", specFile) + logger.info(`Cache Not found loadApiSpec file. Loading.... ${specFile}`) const apiSpecYAML = fs.readFileSync(specFile, 'utf8'); const apiSpec = YAML.parse(apiSpecYAML); apiSpecCache[specFile] = apiSpec; @@ -30,7 +30,7 @@ let cachedOpenApiValidator: express.RequestHandler[] | null = null; // Function to initialize and cache the OpenAPI validator middleware const getOpenApiValidatorMiddleware = (specFile: string) => { if (!cachedOpenApiValidator) { - console.log("Cache Not found for OpenApiValidator middleware. Loading....", specFile) + logger.info(`Cache Not found for OpenApiValidator middleware. Loading.... ${specFile}`) const apiSpec = loadApiSpec(specFile); cachedOpenApiValidator = OpenApiValidator.middleware({ apiSpec, @@ -103,7 +103,6 @@ export const openApiValidatorMiddleware = async ( } const openApiValidator = getOpenApiValidatorMiddleware(specFile) - logger.info("openApiValidator middleware initialized", openApiValidator) const walkSubstack = function ( stack: any, diff --git a/src/routes/requests.routes.ts b/src/routes/requests.routes.ts index 754485e..d5e3562 100644 --- a/src/routes/requests.routes.ts +++ b/src/routes/requests.routes.ts @@ -23,15 +23,9 @@ import fs from "fs"; import path from "path"; import { LogLevelEnum } from "../utils/logger.utils"; import { onAPI } from "../utils/telemetry.utils"; -import { start } from "repl"; export const requestsRouter = Router(); -export async function executionTime(req: Request, res: Response<{}, Locals>, next: NextFunction, action: string, startTime: number, middlewareFn: Function) { - await middlewareFn - console.log(`### Time to process:`, Date.now() - startTime); -} - requestsRouter.get("/logs", (req, res) => { try { const logLevel: LogLevelEnum = req?.query?.type as LogLevelEnum; @@ -63,45 +57,20 @@ if ( Object.keys(RequestActions).forEach((action) => { if (requestActions[action as RequestActions]) { // requestsRouter.post(`/${action}`, jsonCompressorMiddleware, contextBuilderMiddleware, authBuilderMiddleware, openApiValidatorMiddleware, bapClientTriggerHandler); - let startTime = Date.now(); - let prevMWTime = Date.now(); - let currentTime = Date.now(); requestsRouter.post( `/${action}`, - async(req: Request, res: Response<{}, Locals>, next: NextFunction) => { - startTime = currentTime = Date.now(); - prevMWTime = currentTime; - await jsonCompressorMiddleware(req, res, next); - }, + jsonCompressorMiddleware, async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { - currentTime = Date.now(); - console.log(`### jsonCompressorMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); - prevMWTime = currentTime; await contextBuilderMiddleware(req, res, next, action); }, - async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { - currentTime = Date.now(); - console.log(`### contextBuilderMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); - prevMWTime = currentTime; - await authBuilderMiddleware(req, res, next); - }, - // async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { - // currentTime = Date.now(); - // console.log(`### authBuilderMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); - // prevMWTime = currentTime; - // // await openApiValidatorMiddleware(req, res, next); - // next(); - // }, + authBuilderMiddleware, openApiValidatorMiddleware, async (req: Request, res: Response<{}, Locals>, next: NextFunction) => { - currentTime = Date.now(); - console.log(`### openApiValidatorMiddleware Processing Time:`, currentTime - prevMWTime, `ms`); await bapClientTriggerHandler( req, res, next, action as RequestActions, - startTime ); } ); From 511dcc90cbeeb7174d8908979eda9b6f855992de Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Tue, 21 May 2024 17:45:18 +0530 Subject: [PATCH 7/8] removed output.log file --- output.log | 630 ---------------------- src/controllers/bap.trigger.controller.ts | 2 +- 2 files changed, 1 insertion(+), 631 deletions(-) delete mode 100644 output.log diff --git a/output.log b/output.log deleted file mode 100644 index 43b2b3f..0000000 --- a/output.log +++ /dev/null @@ -1,630 +0,0 @@ - -> protocol-server_v2@1.0.0 dev -> nodemon src/app.ts - -[nodemon] 2.0.22 -[nodemon] to restart at any time, enter `rs` -[nodemon] watching path(s): *.* -[nodemon] watching extensions: ts,json -[nodemon] starting `ts-node src/app.ts` -2024-05-20T18:12:49.799Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:12:49.813Z [test] info: MQ Client Connected For: 0.0.0.0 -2024-05-20T18:12:49.825Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:12:49.826Z [test] info: Redis Client Connected For DB: 1 -2024-05-20T18:12:49.826Z [test] info: Lookup Cache Initialized... -2024-05-20T18:12:49.827Z [test] info: Redis Client Connected For DB: 2 -2024-05-20T18:12:49.827Z [test] info: Request Cache Initialized... -2024-05-20T18:12:50.568Z [test] info: Protocol Server started on PORT : 5001 -2024-05-20T18:12:50.569Z [test] info: Protocol Server Started Successfully -2024-05-20T18:12:50.569Z [test] info: Mode: BAP -2024-05-20T18:12:50.569Z [test] info: Gateway Type: CLIENT -2024-05-20T18:14:05.638Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 2 -2024-05-20T18:14:05.642Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:14:05.642Z","message_id":"9bb065eb-1f72-41b9-bcec-ae6f454f89ff","transaction_id":"3a70c34c-e420-4090-91ff-fa3b43838439","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 5 -2024-05-20T18:14:05.644Z [test] info: Building Auth Header - -2024-05-20T18:14:05.647Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716228785 -(expires): 1716232385 -digest: BLAKE-512=nEV2cax6F8QtFk8uOHpnpN5PhV4/J8Zjsb61Fg4EkacSt0WKiNeDcFkMaYb/2076x+SQGkml+wSsTTJN6d5hzw== -*********************************-----*********************************** - -2024-05-20T18:14:05.649Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716228785\",expires=\"1716232385\",headers=\"(created) (expires) digest\",signature=\"gONrO2OY5AHTDduibi+cFBP1u+gz5NZ4KIymqczF0LnS7VQ72FwIHEEcZU2vkLFrxZRJIWempm8YgDvTYshLAg==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:14:05.650Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:14:05.650Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 6 -Cache Not found. Loading.... schemas/core_1.1.0.yaml -### openApiValidatorMiddleware Processing Time: 848 -2024-05-20T18:14:06.499Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:14:06.499Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:14:05.642Z","message_id":"9bb065eb-1f72-41b9-bcec-ae6f454f89ff","transaction_id":"3a70c34c-e420-4090-91ff-fa3b43838439","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:14:13.857Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:14:13.857Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"3a70c34c-e420-4090-91ff-fa3b43838439","message_id":"9bb065eb-1f72-41b9-bcec-ae6f454f89ff","ttl":"PT10M","timestamp":"2024-05-20T18:14:10.162Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=3a70c34c-e420-4090-91ff-fa3b43838439&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 8267 ms -2024-05-20T18:14:35.010Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 1 -2024-05-20T18:14:35.013Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:14:35.013Z","message_id":"1f625e03-0ef5-43cd-bb52-3e5c34627b0b","transaction_id":"fd63a882-6bf5-4904-9fe8-28ebd1f25416","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 2 -2024-05-20T18:14:35.013Z [test] info: Building Auth Header - -2024-05-20T18:14:35.014Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716228815 -(expires): 1716232415 -digest: BLAKE-512=W2eOHVEwI+jWEzMj0mZCK5eQT4Wzr9heF+PnODxcsqnt7+HM2Ova1Td33tme0NmWjqNor9/K+ax+p0UqjODF3A== -*********************************-----*********************************** - -2024-05-20T18:14:35.015Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716228815\",expires=\"1716232415\",headers=\"(created) (expires) digest\",signature=\"UDPUrvAMyyU2rnZL2ueimpLUhIHsC19b2xJ2KMblBMOFaXu9FpiLkSkSZmg98lJb+unhEGzNBOHfP+QONAdECQ==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:14:35.037Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:14:35.038Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 25 -### openApiValidatorMiddleware Processing Time: 778 -2024-05-20T18:14:35.816Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:14:35.817Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:14:35.013Z","message_id":"1f625e03-0ef5-43cd-bb52-3e5c34627b0b","transaction_id":"fd63a882-6bf5-4904-9fe8-28ebd1f25416","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:14:42.631Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:14:42.632Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"fd63a882-6bf5-4904-9fe8-28ebd1f25416","message_id":"1f625e03-0ef5-43cd-bb52-3e5c34627b0b","ttl":"PT10M","timestamp":"2024-05-20T18:14:39.316Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=fd63a882-6bf5-4904-9fe8-28ebd1f25416&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 7692 ms -2024-05-20T18:15:04.409Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 1 -2024-05-20T18:15:04.412Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:15:04.412Z","message_id":"0f7954d1-d46f-46ba-bf2d-b5bc808c5ca9","transaction_id":"c289c8f0-a5a0-4d30-9096-deeff1b9cb3f","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 3 -2024-05-20T18:15:04.413Z [test] info: Building Auth Header - -2024-05-20T18:15:04.413Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716228844 -(expires): 1716232444 -digest: BLAKE-512=3Lt/fp2LhMxjbcSJrMvj4TqukrgDt+C7naj6gzdM2xIO6NSSvtrUSWepGrMI2nGlAAj4D59PsI7K2a+pPcPWMQ== -*********************************-----*********************************** - -2024-05-20T18:15:04.414Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716228844\",expires=\"1716232444\",headers=\"(created) (expires) digest\",signature=\"VlQ9P+tIzWQaRnVFwfD/ZEF6IaRDTkkV6jOcwUuS5Z4nI0L9Adw22/NM59jIxOda3vB70IiCHEZWbxfEwEEWCw==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:15:04.415Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:15:04.415Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 2 -### openApiValidatorMiddleware Processing Time: 767 -2024-05-20T18:15:05.183Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:15:05.183Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:15:04.412Z","message_id":"0f7954d1-d46f-46ba-bf2d-b5bc808c5ca9","transaction_id":"c289c8f0-a5a0-4d30-9096-deeff1b9cb3f","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:15:11.561Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:15:11.561Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"c289c8f0-a5a0-4d30-9096-deeff1b9cb3f","message_id":"0f7954d1-d46f-46ba-bf2d-b5bc808c5ca9","ttl":"PT10M","timestamp":"2024-05-20T18:15:08.238Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=c289c8f0-a5a0-4d30-9096-deeff1b9cb3f&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 7232 ms -[nodemon] restarting due to changes... -[nodemon] starting `ts-node src/app.ts` -2024-05-20T18:16:50.940Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:16:50.954Z [test] info: MQ Client Connected For: 0.0.0.0 -2024-05-20T18:16:50.963Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:16:50.964Z [test] info: Redis Client Connected For DB: 1 -2024-05-20T18:16:50.965Z [test] info: Lookup Cache Initialized... -2024-05-20T18:16:50.965Z [test] info: Redis Client Connected For DB: 2 -2024-05-20T18:16:50.965Z [test] info: Request Cache Initialized... -2024-05-20T18:16:51.705Z [test] info: Protocol Server started on PORT : 5001 -2024-05-20T18:16:51.705Z [test] info: Protocol Server Started Successfully -2024-05-20T18:16:51.705Z [test] info: Mode: BAP -2024-05-20T18:16:51.705Z [test] info: Gateway Type: CLIENT -[nodemon] restarting due to changes... -[nodemon] starting `ts-node src/app.ts` -2024-05-20T18:17:03.789Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:17:03.805Z [test] info: MQ Client Connected For: 0.0.0.0 -2024-05-20T18:17:03.818Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:17:03.819Z [test] info: Redis Client Connected For DB: 1 -2024-05-20T18:17:03.819Z [test] info: Lookup Cache Initialized... -2024-05-20T18:17:03.819Z [test] info: Redis Client Connected For DB: 2 -2024-05-20T18:17:03.820Z [test] info: Request Cache Initialized... -2024-05-20T18:17:04.537Z [test] info: Protocol Server started on PORT : 5001 -2024-05-20T18:17:04.537Z [test] info: Protocol Server Started Successfully -2024-05-20T18:17:04.537Z [test] info: Mode: BAP -2024-05-20T18:17:04.538Z [test] info: Gateway Type: CLIENT -[nodemon] restarting due to changes... -[nodemon] starting `ts-node src/app.ts` -2024-05-20T18:21:53.396Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:21:53.416Z [test] info: MQ Client Connected For: 0.0.0.0 -2024-05-20T18:21:53.428Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:21:53.429Z [test] info: Redis Client Connected For DB: 1 -2024-05-20T18:21:53.429Z [test] info: Lookup Cache Initialized... -2024-05-20T18:21:53.429Z [test] info: Redis Client Connected For DB: 2 -2024-05-20T18:21:53.429Z [test] info: Request Cache Initialized... -2024-05-20T18:21:54.199Z [test] info: Protocol Server started on PORT : 5001 -2024-05-20T18:21:54.199Z [test] info: Protocol Server Started Successfully -2024-05-20T18:21:54.199Z [test] info: Mode: BAP -2024-05-20T18:21:54.199Z [test] info: Gateway Type: CLIENT -[nodemon] restarting due to changes... -[nodemon] starting `ts-node src/app.ts` -2024-05-20T18:21:58.798Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:21:58.816Z [test] info: MQ Client Connected For: 0.0.0.0 -2024-05-20T18:21:58.830Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:21:58.831Z [test] info: Redis Client Connected For DB: 1 -2024-05-20T18:21:58.831Z [test] info: Lookup Cache Initialized... -2024-05-20T18:21:58.831Z [test] info: Redis Client Connected For DB: 2 -2024-05-20T18:21:58.831Z [test] info: Request Cache Initialized... -2024-05-20T18:21:59.638Z [test] info: Protocol Server started on PORT : 5001 -2024-05-20T18:21:59.638Z [test] info: Protocol Server Started Successfully -2024-05-20T18:21:59.638Z [test] info: Mode: BAP -2024-05-20T18:21:59.638Z [test] info: Gateway Type: CLIENT -[nodemon] restarting due to changes... -[nodemon] starting `ts-node src/app.ts` -2024-05-20T18:22:01.990Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:22:02.006Z [test] info: MQ Client Connected For: 0.0.0.0 -2024-05-20T18:22:02.019Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:22:02.020Z [test] info: Redis Client Connected For DB: 1 -2024-05-20T18:22:02.020Z [test] info: Lookup Cache Initialized... -2024-05-20T18:22:02.020Z [test] info: Redis Client Connected For DB: 2 -2024-05-20T18:22:02.021Z [test] info: Request Cache Initialized... -2024-05-20T18:22:02.725Z [test] info: Protocol Server started on PORT : 5001 -2024-05-20T18:22:02.727Z [test] info: Protocol Server Started Successfully -2024-05-20T18:22:02.727Z [test] info: Mode: BAP -2024-05-20T18:22:02.727Z [test] info: Gateway Type: CLIENT -2024-05-20T18:22:10.321Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 1 ms -2024-05-20T18:22:10.324Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:22:10.324Z","message_id":"360427d7-b509-4929-abd8-3e9e36cec054","transaction_id":"a81158c2-12b2-4cca-97ba-7af8648be80e","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 3 ms -2024-05-20T18:22:10.324Z [test] info: Building Auth Header - -2024-05-20T18:22:10.325Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716229270 -(expires): 1716232870 -digest: BLAKE-512=1Pt/yIduRQZh9PlkiR10KYkA8Vif1SbDjQOKK5EcUVghvpxR/8MXMhMTO47rfLzoAKlmvF+AipCRbjC7Nlyeuw== -*********************************-----*********************************** - -2024-05-20T18:22:10.328Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229270\",expires=\"1716232870\",headers=\"(created) (expires) digest\",signature=\"BmP6tJY4kTX9qxakrAVni6ZhplBbbDUqpVE97D17pqY5UQwaw5FU+mWHbVFrLIssCMvkUsde+IxH/wRA2K6PBw==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:22:10.333Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:22:10.333Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 9 ms -Cache Not found. Loading.... schemas/core_1.1.0.yaml -### openApiValidatorMiddleware Processing Time: 743 ms -2024-05-20T18:22:11.078Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:22:11.078Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:22:10.324Z","message_id":"360427d7-b509-4929-abd8-3e9e36cec054","transaction_id":"a81158c2-12b2-4cca-97ba-7af8648be80e","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:22:18.111Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:22:18.112Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"a81158c2-12b2-4cca-97ba-7af8648be80e","message_id":"360427d7-b509-4929-abd8-3e9e36cec054","ttl":"PT10M","timestamp":"2024-05-20T18:22:14.615Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=a81158c2-12b2-4cca-97ba-7af8648be80e&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 7833 ms -2024-05-20T18:27:58.635Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 2 ms -2024-05-20T18:27:58.638Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:27:58.638Z","message_id":"86898c45-a500-482b-9286-26deced58a09","transaction_id":"26c0272f-85f6-4f1f-a6ea-de52563313fb","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 2 ms -2024-05-20T18:27:58.638Z [test] info: Building Auth Header - -2024-05-20T18:27:58.639Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716229618 -(expires): 1716233218 -digest: BLAKE-512=nVwpKV5TOdj20fJfA4lQjLDBiDsEnHgTrhMf9yfeqME4Zwv3490tdSIvvR+96mHSv9DtkNvbFaOGoPsAUNgcgw== -*********************************-----*********************************** - -2024-05-20T18:27:58.639Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229618\",expires=\"1716233218\",headers=\"(created) (expires) digest\",signature=\"hjcj7cd3QbunwDN8KuLzco/M91DZEaXwv1KAunq2ncFfxZlMf4MJX0QOVjdLB0RdFZF254qSaB0tCdwfmqT6AA==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:27:58.652Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:27:58.652Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 14 ms -### openApiValidatorMiddleware Processing Time: 801 ms -2024-05-20T18:27:59.455Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:27:59.455Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:27:58.638Z","message_id":"86898c45-a500-482b-9286-26deced58a09","transaction_id":"26c0272f-85f6-4f1f-a6ea-de52563313fb","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:28:07.424Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:28:07.424Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"26c0272f-85f6-4f1f-a6ea-de52563313fb","message_id":"86898c45-a500-482b-9286-26deced58a09","ttl":"PT10M","timestamp":"2024-05-20T18:28:03.619Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=26c0272f-85f6-4f1f-a6ea-de52563313fb&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 8860 ms -2024-05-20T18:29:04.740Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 2 ms -2024-05-20T18:29:04.743Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:29:04.743Z","message_id":"483fa841-cf79-4d5f-a281-b9dee201744d","transaction_id":"4c07dc00-8020-47cc-9e57-a49a165377dd","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 1 ms -2024-05-20T18:29:04.743Z [test] info: Building Auth Header - -2024-05-20T18:29:04.744Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716229684 -(expires): 1716233284 -digest: BLAKE-512=jpK+1c0SKHTqzy/Ek6Jy8mN9Gmz/DUCakketTlNwRomIhVsXu+X5/L0kj66srRfE2/AkLpLp4Dc7NtTa4CQDmQ== -*********************************-----*********************************** - -2024-05-20T18:29:04.744Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229684\",expires=\"1716233284\",headers=\"(created) (expires) digest\",signature=\"n0wMsEZHJUavWyUQpDxZZG0IkGUQFE2HOXkfCpi4flvhFccfdPV2xi5xH1A/5Be2HKjZAru0rIS8SanxH09PCw==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:29:04.745Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:29:04.745Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 2 ms -### openApiValidatorMiddleware Processing Time: 767 ms -2024-05-20T18:29:05.512Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:29:05.512Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:29:04.743Z","message_id":"483fa841-cf79-4d5f-a281-b9dee201744d","transaction_id":"4c07dc00-8020-47cc-9e57-a49a165377dd","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:29:12.582Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:29:12.582Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"4c07dc00-8020-47cc-9e57-a49a165377dd","message_id":"483fa841-cf79-4d5f-a281-b9dee201744d","ttl":"PT10M","timestamp":"2024-05-20T18:29:08.935Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=4c07dc00-8020-47cc-9e57-a49a165377dd&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 7870 ms -2024-05-20T18:30:02.735Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 3 ms -2024-05-20T18:30:02.743Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:30:02.743Z","message_id":"473eaa16-9939-46e3-bdf3-72e2680b4d60","transaction_id":"d6b29173-b804-49a3-a21d-f5304d21fdd7","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 5 ms -2024-05-20T18:30:02.744Z [test] info: Building Auth Header - -2024-05-20T18:30:02.745Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716229742 -(expires): 1716233342 -digest: BLAKE-512=vDJyVfpGePr20aANqqefyl58mdi/fQXmm8btXovIfx+O7IRVxH20phSm7vE5MtkNTiUohgJ0rLXwqdLy4yi/Ow== -*********************************-----*********************************** - -2024-05-20T18:30:02.745Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229742\",expires=\"1716233342\",headers=\"(created) (expires) digest\",signature=\"HgPhgmuMDfvnK2oit/1i23dcGr5heVf8QboLZ9BpvclKC/1BPy+/SX0654JEChq+vxaDzTizVnoE7z+mLReODg==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:30:02.762Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:30:02.762Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 19 ms -### openApiValidatorMiddleware Processing Time: 927 ms -2024-05-20T18:30:03.693Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:30:03.693Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:30:02.743Z","message_id":"473eaa16-9939-46e3-bdf3-72e2680b4d60","transaction_id":"d6b29173-b804-49a3-a21d-f5304d21fdd7","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:30:10.219Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:30:10.219Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"d6b29173-b804-49a3-a21d-f5304d21fdd7","message_id":"473eaa16-9939-46e3-bdf3-72e2680b4d60","ttl":"PT10M","timestamp":"2024-05-20T18:30:07.272Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=d6b29173-b804-49a3-a21d-f5304d21fdd7&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 7526 ms -2024-05-20T18:31:50.968Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 2 ms -2024-05-20T18:31:50.971Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:31:50.971Z","message_id":"c848cb4d-ebc1-4b12-8bf1-de732bb2b558","transaction_id":"e0ccc7c4-833c-4a7b-91b4-9d06b3b778e3","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 2 ms -2024-05-20T18:31:50.971Z [test] info: Building Auth Header - -2024-05-20T18:31:50.972Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716229850 -(expires): 1716233450 -digest: BLAKE-512=7EjQOo6/N2abTISVGifSlJwP5v2+d6NrdYTxEYmaSkK08Wd0hfczH7/t4RoTS+hIVc66ePUjurKofyyPOBZ11w== -*********************************-----*********************************** - -2024-05-20T18:31:50.972Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229850\",expires=\"1716233450\",headers=\"(created) (expires) digest\",signature=\"W2GU6j3iGCXpkpg2OMrU2R3KDXGdBQ/GuJ2P+O3/yDe0/7Jutq6Vt64axZuK9T0d1YUBT3yHXzy6Y5QMPt7JCA==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:31:50.973Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:31:50.973Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 3 ms -### openApiValidatorMiddleware Processing Time: 760 ms -2024-05-20T18:31:51.736Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:31:51.736Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:31:50.971Z","message_id":"c848cb4d-ebc1-4b12-8bf1-de732bb2b558","transaction_id":"e0ccc7c4-833c-4a7b-91b4-9d06b3b778e3","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:31:59.024Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:31:59.024Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"e0ccc7c4-833c-4a7b-91b4-9d06b3b778e3","message_id":"c848cb4d-ebc1-4b12-8bf1-de732bb2b558","ttl":"PT10M","timestamp":"2024-05-20T18:31:55.318Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=e0ccc7c4-833c-4a7b-91b4-9d06b3b778e3&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 8062 ms -2024-05-20T18:33:10.455Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 2 ms -2024-05-20T18:33:10.458Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:33:10.458Z","message_id":"e7afa744-48f0-455b-8cea-a4f0fa368be9","transaction_id":"67450df3-ceae-420e-a67f-70b3f587e586","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 1 ms -2024-05-20T18:33:10.458Z [test] info: Building Auth Header - -2024-05-20T18:33:10.459Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716229930 -(expires): 1716233530 -digest: BLAKE-512=oI8PnutuSpJRxKW+1/uKlSlca4ooHjzjCqBB+AeiHl1C9l6MdJDNe6GfmcxgHY8bolDOFdDK+behBcNr51cnqw== -*********************************-----*********************************** - -2024-05-20T18:33:10.459Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716229930\",expires=\"1716233530\",headers=\"(created) (expires) digest\",signature=\"BQ6KuZYYm9kv2hKIZbJV31I1atiXMZBvGLgXG/YwpvvFR4IkREfPhr4TrHtrzto+VOhzQ57NlloM1xVGUL+SAQ==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:33:10.459Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:33:10.460Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 2 ms -### openApiValidatorMiddleware Processing Time: 777 ms -2024-05-20T18:33:11.238Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:33:11.238Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:33:10.458Z","message_id":"e7afa744-48f0-455b-8cea-a4f0fa368be9","transaction_id":"67450df3-ceae-420e-a67f-70b3f587e586","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}},"tracking":false}],"type":"DEFAULT"}}} - -2024-05-20T18:33:17.702Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:33:17.703Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"67450df3-ceae-420e-a67f-70b3f587e586","message_id":"e7afa744-48f0-455b-8cea-a4f0fa368be9","ttl":"PT10M","timestamp":"2024-05-20T18:33:14.738Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=67450df3-ceae-420e-a67f-70b3f587e586&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 7312 ms -[nodemon] restarting due to changes... -[nodemon] starting `ts-node src/app.ts` -2024-05-20T18:33:52.424Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:33:52.435Z [test] info: MQ Client Connected For: 0.0.0.0 -2024-05-20T18:33:52.443Z [test] info: Mongo Client Connected For DB: ps -2024-05-20T18:33:52.444Z [test] info: Redis Client Connected For DB: 1 -2024-05-20T18:33:52.444Z [test] info: Lookup Cache Initialized... -2024-05-20T18:33:52.445Z [test] info: Redis Client Connected For DB: 2 -2024-05-20T18:33:52.445Z [test] info: Request Cache Initialized... -2024-05-20T18:33:53.196Z [test] info: Protocol Server started on PORT : 5001 -2024-05-20T18:33:53.196Z [test] info: Protocol Server Started Successfully -2024-05-20T18:33:53.196Z [test] info: Mode: BAP -2024-05-20T18:33:53.196Z [test] info: Gateway Type: CLIENT -2024-05-20T18:34:33.451Z [test] info: Request from IP address ===> ::1 - Req From URL==> undefined - - -### jsonCompressorMiddleware Processing Time: 2 ms -2024-05-20T18:34:33.455Z [test] info: BAP Context created at BAP-CLIENT :==> -{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:34:33.455Z","message_id":"0518e573-6844-4a4f-93af-fb47a041da07","transaction_id":"e32ee33c-b714-40c7-bf1a-cb0d40403cbd","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"} - -### contextBuilderMiddleware Processing Time: 4 ms -2024-05-20T18:34:33.456Z [test] info: Building Auth Header - -2024-05-20T18:34:33.459Z [test] info: -*********************************-----*********************************** - Signing String:==> -(created): 1716230013 -(expires): 1716233613 -digest: BLAKE-512=pPO33zLzpeL1rm9g4o7OzURove65ld0QnHAl7lYj2XK1HQcWbUg2dUSAMuJu2IvH0dSFE0Vio2jdnfd8MA8zDA== -*********************************-----*********************************** - -2024-05-20T18:34:33.460Z [test] info: Axios Config for Request from bap client:==> -{"headers":{"authorization":"Signature keyId=\"4826-49-206-252-152.ngrok-free.app|e2af49f4-fa5d-43c7-8204-fcb04e4ec612|ed25519\",algorithm=\"ed25519\",created=\"1716230013\",expires=\"1716233613\",headers=\"(created) (expires) digest\",signature=\"FvtexGNFszidqqlzyPU/AsCJYsDeG+zq0bSYQr2rMz04xt+3+99n3WdXT1k985sTxchHgoeSfokD8b3yuADJDg==\""},"timeout":3000} - - -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -queryKey : eyJkb21haW4iOiJOL0EiLCJzdWJzY3JpYmVyX2lkIjoiNDgyNi00OS0yMDYtMjUyLTE1Mi5uZ3Jvay1mcmVlLmFwcCIsInR5cGUiOiJOL0EiLCJ1bmlxdWVfa2V5X2lkIjoiZTJhZjQ5ZjQtZmE1ZC00M2M3LTgyMDQtZmNiMDRlNGVjNjEyIn0 -redisResponse : [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -2024-05-20T18:34:33.474Z [test] info: -Returning response from Cache at BAP-CLIENT - -2024-05-20T18:34:33.474Z [test] info: CachedResponse at BAP-CLIENT: [{"subscriber_id":"4826-49-206-252-152.ngrok-free.app","subscriber_url":"https://4826-49-206-252-152.ngrok-free.app/","type":"BAP","signing_public_key":"Us5QAhlzGE7RiqzvvysI2D39QjQ+AtGfYwgg+FqRpWM=","valid_until":"2027-01-01T05:30:00.000Z"}] -### authBuilderMiddleware Processing Time: 18 ms -### openApiValidatorMiddleware Processing Time: 0 ms -2024-05-20T18:34:33.477Z [test] info: Sending message to outbox queue at BAP-CLIENT - - -2024-05-20T18:34:33.477Z [test] info: Request from client: - {"context":{"ttl":"PT10M","action":"init","timestamp":"2024-05-20T18:34:33.455Z","message_id":"0518e573-6844-4a4f-93af-fb47a041da07","transaction_id":"e32ee33c-b714-40c7-bf1a-cb0d40403cbd","domain":"onest:financial-support","version":"1.1.0","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network"},"message":{"order":{"items":[{"id":"5"}],"provider":{"id":"1"},"fulfillments":[{"customer":{"id":"123456","person":{"name":"Mahesh","age":"43","gender":"M"},"contact":{"phone":"9090909090","email":"abc@gmail.com"}}}]}}} - -2024-05-20T18:34:40.407Z [test] info: Protocol Client Server (Network Settler) recieving message from inbox queue -2024-05-20T18:34:40.407Z [test] info: Response from BPP NETWORK: - {"context":{"domain":"onest:financial-support","action":"on_init","version":"1.1.0","bpp_id":"d.tibil.scholarship.dash.tibilprojects.com","bpp_uri":"https://d.tibil.scholarship.dash.tibilprojects.com/protocol-network","country":"IND","city":"std:080","bap_id":"4826-49-206-252-152.ngrok-free.app","bap_uri":"https://4826-49-206-252-152.ngrok-free.app","transaction_id":"e32ee33c-b714-40c7-bf1a-cb0d40403cbd","message_id":"0518e573-6844-4a4f-93af-fb47a041da07","ttl":"PT10M","timestamp":"2024-05-20T18:34:37.572Z"},"message":{"order":{"provider":{"id":"1","descriptor":{"name":"buddy4"}},"items":[{"id":"5","descriptor":{"name":"Kotak Suraksha Scholarship Program for College Students 2024-25","long_desc":"The Kotak Suraksha Scholarship Program by Kotak Securities offers financial aid to Persons with Disabilities (PwD) category students in India. It supports Grade 9 to 12 students and those pursuing general or professional undergraduation studies within the country.","additional_desc":{"opportunity_type":"Scholarship"}},"creator":{"descriptor":{"name":"Kotak Securities Limited (KSL)"}},"price":{"currency":"INR","value":"Up to ₹1,00,000 per year"},"time":{"range":{"start":"2024-03-20T13:23:01+00:00","end":"2024-04-30T13:23:01+00:00"}},"rateable":true,"tags":[{"display":true,"descriptor":{"code":"academic-eligibility","name":"Academic-Eligibility"},"list":[{"descriptor":{"name":"Course","code":"course"},"value":"General/professional graduation","display":true},{"descriptor":{"name":"Min-Eligibility","code":"min-eligibility"},"value":"Pan-India applicants\n\nOpen to PwD (Persons with Disabilities) category students\n\nApplicants must have secured least 55% marks in the previous qualifying examination","display":true}]},{"display":true,"descriptor":{"code":"background-eligibility","name":"Background-Eligibility"},"list":[{"descriptor":{"name":"Social-Eligibility","code":"social-eligibility"},"value":"-","display":true},{"descriptor":{"name":"Gender-Eligibility","code":"gender-eligibility"},"value":"For All","display":true},{"descriptor":{"name":"Annual-Income","code":"annual-income"},"value":"Not more than ₹3,20,000","display":true}]},{"display":true,"descriptor":{"code":"additional-info","name":"Additional-Info"},"list":[{"descriptor":{"name":"Buddy4-Url","code":"buddy4-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Source-Url","code":"source-url"},"value":"https://www.buddy4study.com/page/kotak-suraksha-scholarship-program","display":true},{"descriptor":{"name":"Document-Url","code":"document-url"},"value":"N/A","display":true},{"descriptor":{"name":"Application-Mode","code":"application-mode"},"value":"Online","display":true},{"descriptor":{"name":"Extension of Deadline","code":"extension of deadline"},"value":"No","display":true},{"descriptor":{"name":"Other Details","code":"other details"},"value":"Children of the employees of Kotak Securities, its affiliates and Buddy4Study are not eligible.","display":true}]}],"xinput":{"required":true,"head":{"descriptor":{"name":"Application Form"},"index":{"min":0,"cur":0,"max":1},"headings":[["Scholarship Application Form"]]},"form":{"mime_type":"text/html","url":"https://d.tibil.scholarship.dash.tibilprojects.com/job/form?org_id=1&transaction_id=e32ee33c-b714-40c7-bf1a-cb0d40403cbd&job_id=5&curr_page=0&context=onest:financial-support"}}}],"type":"DEFAULT"}}} - - -### On res finish Processing Time: 7055 ms -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 -Started syncing telemetry... -Stored api data size: 0 -Stored metric data size: 0 -Stored audit data size: 0 -Stored raw data size: 0 diff --git a/src/controllers/bap.trigger.controller.ts b/src/controllers/bap.trigger.controller.ts index 473eff4..f887d86 100644 --- a/src/controllers/bap.trigger.controller.ts +++ b/src/controllers/bap.trigger.controller.ts @@ -29,7 +29,7 @@ export const bapClientTriggerHandler = async ( req: Request, res: Response<{}, Locals>, next: NextFunction, - action: RequestActions, + action: RequestActions ) => { try { const bpp_id: string | undefined = req.body.context.bpp_id; From a1eaeb2ba0ea21671b6b788f097b5cdf36b099d8 Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Tue, 21 May 2024 17:58:24 +0530 Subject: [PATCH 8/8] code changes added in bpp.response.controller.ts --- src/controllers/bpp.response.controller.ts | 89 ++++++++++++++-------- 1 file changed, 58 insertions(+), 31 deletions(-) diff --git a/src/controllers/bpp.response.controller.ts b/src/controllers/bpp.response.controller.ts index a80b5f0..31d9f20 100644 --- a/src/controllers/bpp.response.controller.ts +++ b/src/controllers/bpp.response.controller.ts @@ -86,12 +86,14 @@ export const bppClientResponseSettler = async ( if (requestCache.sender.type == NetworkPaticipantType.BG) { const subscribers = [requestCache.sender]; - response = await callNetwork( + callNetwork( subscribers, responseBody, axios_config, action - ); + ).then((response) => { + responseHandler(response, responseBody, action); + }); } else { const subscribers: Array = [ { @@ -100,14 +102,39 @@ export const bppClientResponseSettler = async ( } ]; - response = await callNetwork( + callNetwork( subscribers, responseBody, axios_config, action + ).then((response) => { + responseHandler(response, responseBody, action); + }); + } + return; + } catch (error) { + let exception: Exception | null = null; + if (error instanceof Exception) { + exception = error; + } else { + exception = new Exception( + ExceptionType.Request_Failed, + "BPP Response Failed at bppClientResponseSettler", + 500, + error ); } + logger.error(exception); + } +}; + +const responseHandler = async(res:any, responseBody:any, action:any) => { + try{ + const response = { + data: JSON.stringify(res.data), + status: res.status + }; if ( response.status == 200 || response.status == 202 || @@ -117,36 +144,36 @@ export const bppClientResponseSettler = async ( const additionalCustomAttrsConfig = getConfig().app.telemetry.messageProperties; const additionalCustomAttrs = customAttributes(responseBody, additionalCustomAttrsConfig); telemetrySDK.onApi({ data: { attributes: { "http.status.code": response.status, ...additionalCustomAttrs } } })(responseBody, response); - return; - } - - switch (getConfig().client.type) { - case ClientConfigType.synchronous: { - throw new Exception( - ExceptionType.Config_ClientConfig_Invalid, - "Synchronous mode is not available for BPP.", - 400 - ); - break; - } - case ClientConfigType.messageQueue: { - // TODO: implement message queue. - break; - } - case ClientConfigType.webhook: { - if (getConfig().app.gateway.mode !== GatewayMode.network) { - errorCallback(context, { - // TODO: change the error code. - code: 354845, - message: "Network call failed", - type: BecknErrorType.coreError, - data: [response] - }); + } else { + switch (getConfig().client.type) { + case ClientConfigType.synchronous: { + throw new Exception( + ExceptionType.Config_ClientConfig_Invalid, + "Synchronous mode is not available for BPP.", + 400 + ); + break; + } + case ClientConfigType.messageQueue: { + // TODO: implement message queue. + break; + } + case ClientConfigType.webhook: { + if (getConfig().app.gateway.mode !== GatewayMode.network) { + const context = JSON.parse(JSON.stringify(responseBody.context)); + errorCallback(context, { + // TODO: change the error code. + code: 354845, + message: "Network call failed", + type: BecknErrorType.coreError, + data: [response] + }); + } + break; } - break; } } - } catch (error) { + }catch (error) { let exception: Exception | null = null; if (error instanceof Exception) { exception = error; @@ -161,4 +188,4 @@ export const bppClientResponseSettler = async ( logger.error(exception); } -}; +} \ No newline at end of file