pucardotorg / Dristi_kerala

For Pucar Solutions team
0 stars 3 forks source link

DEV || Join Case API ERROR #362

Open bhuvanyuguru opened 4 months ago

bhuvanyuguru commented 4 months ago

API ERROR shown in Join case with litigant

Steps: 1) Click on Join a case 2) Search case with case id 3) Choose affiliated party and click on next 4) Enter Joining code -> ERROR

URL :https://dristi-kerala-dev.pucar.org/case/v1/_verify?_=1722485198705

Response :{"ResponseInfo":null,"Errors":[{"code":"CustomException","message":"You are not authorized to access this resource","description":"You are not authorized to access this resource","params":null}]}

CURL: curl 'https://dristi-kerala-dev.pucar.org/case/v1/_verify?_=1722485198705' \ -H 'accept: application/json, text/plain, */*' \ -H 'accept-language: en-GB,en;q=0.5' \ -H 'content-type: application/json;charset=UTF-8' \ -H 'origin: https://dristi-kerala-dev.pucar.org' \ -H 'priority: u=1, i' \ -H 'referer: https://dristi-kerala-dev.pucar.org/digit-ui/citizen/home/home-pending-task' \ -H 'sec-ch-ua: "Not)A;Brand";v="99", "Brave";v="127", "Chromium";v="127"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "Linux"' \ -H 'sec-fetch-dest: empty' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-gpc: 1' \ -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \ --data-raw '{"additionalDetails":{"judge":{"data":{},"isenabled":true,"displayindex":0},"scrutiny":{},"payerName":"Bhuvanyu Guru Lit","payerMobileNo":"7012345648","reviewCaseFile":{"formdata":[{"data":{},"isenabled":true,"displayindex":0}],"isCompleted":true},"witnessDetails":{"formdata":[],"isCompleted":true},"advocateDetails":{"formdata":[{"data":{"vakalatnamaFileUpload":null,"isAdvocateRepresenting":{"code":"NO","name":"No","showForm":false,"isEnabled":true,"isVerified":true,"hasBarRegistrationNo":true}},"isenabled":true,"displayindex":0}],"isCompleted":true},"respondentDetails":{"formdata":[{"data":{"addressDetails":[{"id":"c2dd5836-2108-4b1e-9349-a8f46fdcd22f","addressDetails":{"city":"Hyderabad","state":"Telangana","pincode":"500084","district":"test","locality":"test, test, test","coordinates":{"longitude":17.4707751,"latitude":78.3587426}}}],"respondentType":{"code":"INDIVIDUAL","name":"Individual","isEnabled":true,"commonFields":true,"showCompanyDetails":false},"respondentLastName":"Lit","respondentFirstName":"Guru","companyDetailsUpload":null,"respondentMiddleName":"Test","inquiryAffidavitFileUpload":{"document":[{"fileName":"Affidavit documents","fileStore":"6a498046-4554-4dbc-8906-89e4bb5a7e0f","documentName":"test_bill_8.pdf","documentType":"application/pdf"}]},"respondentVerification":{"individualDetails":{"individualId":"IND-2024-07-29-000304","document":null}}},"isenabled":true,"displayindex":0}],"isCompleted":true},"complainantDetails":{"formdata":[{"data":{"lastName":"Lit","firstName":"Bhuvanyu Guru","middleName":"","complainantId":{"complainantId":true},"addressDetails":{"city":"Serilingampalle (M)","state":"Telangana","pincode":"500084","district":"Rangareddy","locality":"test, test, F8HX+7Q8, Kantivanam Colony","coordinates":{"latitude":17.4776564,"longitude":78.3500764}},"complainantType":{"code":"INDIVIDUAL","name":"Individual","isEnabled":true,"commonFields":true,"isIndividual":true,"showCompanyDetails":false,"complainantLocation":true},"companyDetailsUpload":null,"addressDetails-select":{"city":"Serilingampalle (M)","state":"Telangana","pincode":"500084","district":"Rangareddy","locality":"test, test, F8HX+7Q8, Kantivanam Colony"},"complainantVerification":{"otpNumber":"123456","mobileNumber":"7012345648","isUserVerified":true,"individualDetails":{"document":null,"individualId":"IND-2024-07-30-000308","addressDetails":{"city":"Serilingampalle (M)","state":"Telangana","pincode":"500084","district":"Rangareddy","locality":"test, test, F8HX+7Q8, Kantivanam Colony","coordinates":{"latitude":17.4776564,"longitude":78.3500764}},"addressDetails-select":{"city":"Serilingampalle (M)","state":"Telangana","pincode":"500084","district":"Rangareddy","locality":"test, test, F8HX+7Q8, Kantivanam Colony"}}}},"isenabled":true,"displayindex":0}],"isCompleted":true},"prayerSwornStatement":{"formdata":[{"data":{"infoBoxData":{"data":"","header":""},"swornStatement":{"document":[{"fileName":"CS_SWORN_STATEMENT_HEADER","fileStore":"223f9bfd-6d73-4864-a0a8-d70b7d05879a","documentName":"test_bill_8.pdf","documentType":"application/pdf"}]},"prayerForRelief":{"text":"test"},"additionalDetails":{"text":"test"},"memorandumOfComplaint":{"text":"test"},"additionalActsSections":{"text":"tst"},"SelectUploadDocWithName":null,"prayerAndSwornStatementType":{"code":"NO","name":"NO"}},"isenabled":true,"displayindex":0}],"isCompleted":true}},"caseFilingNumber":"F-C.1973.002-2024-000473","tenantId":"kl","accessCode":"749073","caseId":"0b18ad21-59e4-440c-9ff1-566d3804aca2","litigant":{"additionalDetails":{"firstName":"Guru","middleName":"Test","lastName":"Lit","fullName":"Guru Test Lit","affidavitText":"test","uuid":"13bf94f6-1791-4f52-b16b-12fb0eae4b50"},"caseId":"0b18ad21-59e4-440c-9ff1-566d3804aca2","tenantId":"kl","individualId":"IND-2024-07-29-000304","partyCategory":"INDIVIDUAL","partyType":"respondent.primary"},"RequestInfo":{"apiId":"Rainmaker","authToken":"782502b0-c88f-4871-bbb6-cacb9801b2a6","userInfo":{"id":508,"uuid":"13bf94f6-1791-4f52-b16b-12fb0eae4b50","userName":"7012345647","name":"Guru Lit","mobileNumber":"7012345647","emailId":null,"locale":null,"type":"CITIZEN","roles":[{"name":"HEARING_VIEWER","code":"HEARING_VIEWER","tenantId":"kl"},{"name":"CASE_VIEWER","code":"CASE_VIEWER","tenantId":"kl"},{"name":"DEPOSITION_VIEWER","code":"DEPOSITION_VIEWER","tenantId":"kl"},{"name":"Citizen","code":"CITIZEN","tenantId":"kl"},{"name":"DEPOSITION_CREATOR","code":"DEPOSITION_CREATOR","tenantId":"kl"},{"name":"SUBMISSION_RESPONDER","code":"SUBMISSION_RESPONDER","tenantId":"kl"},{"name":"ORDER_VIEWER","code":"ORDER_VIEWER","tenantId":"kl"},{"name":"CASE_EDITOR","code":"CASE_EDITOR","tenantId":"kl"},{"name":"APPLICATION_CREATOR","code":"APPLICATION_CREATOR","tenantId":"kl"},{"name":"SUBMISSION_CREATOR","code":"SUBMISSION_CREATOR","tenantId":"kl"},{"name":"APPLICATION_VIEWER","code":"APPLICATION_VIEWER","tenantId":"kl"},{"name":"CASE_CREATOR","code":"CASE_CREATOR","tenantId":"kl"}],"active":true,"tenantId":"kl","permanentCity":null},"msgId":"1722485198705|en_IN","plainAccessRequest":{}}}'

Image

bhuvanyuguru commented 3 months ago

FIXED in DEV