PUT API request : ?only_validate=true with a nrNumber gives response message": "Internal server error"
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 62
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
On TEST ENV
**Link bug to the User Story**
**Impact of this bug**
User will be unable to Save the Correction Filing
**Chance of Occurring (high/medium/low/very low)**
**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**
**Steps to Reproduce**
Steps to reproduce the behavior:
1. Using POSTMAN; Execute a PUT request **https://legal-api-test.apps.silver.devops.gov.bc.ca/api/v2/businesses/TT0Cf5sIXP/filings/537423?only_validate=true**
2. PUT JSON body
` { "filing": {
"business": {
"identifier": "TT0Cf5sIXP"
},
"header": {
"accountId": 1999,
"affectedFilings": [],
"availableOnPaperOnly": false,
"certifiedBy": "API User",
"colinIds": [],
"comments": [],
"date": "2025-06-24",
"deletionLocked": false,
"email": "no_one@never.get",
"filingId": 537423,
"inColinOnly": false,
"isCorrected": false,
"isCorrectionPending": false,
"isFutureEffective": false,
"name": "incorporationApplication",
"status": "DRAFT",
"submitter": "idir\\vpreddy"
},
"incorporationApplication": {
"contactPoint": {
"email": "argus@highwaythreesolutions.com",
"phone": "(250) 111-2222"
},
"incorporationAgreement": {
"agreementType": "sample"
},
"nameRequest": {
"legalType": "BC",
"nrNumber": "NR 2005111",
"legalName": "AC XYZ BC 2025.may.30 19.57 TEST CORP12."
},
"nameTranslations": [],
"offices": {
"recordsOffice": {
"deliveryAddress": {
"addressCity": "Mission",
"addressCountry": "CA",
"addressRegion": "BC",
"deliveryInstructions": "",
"postalCode": "V2V 7E6",
"streetAddress": "32434 Richards Ave",
"streetAddressAdditional": ""
},
"mailingAddress": {
"addressCity": "Mission",
"addressCountry": "CA",
"addressRegion": "BC",
"deliveryInstructions": "",
"postalCode": "V2V 7E6",
"streetAddress": "32434 Richards Ave",
"streetAddressAdditional": "Stringwith90charsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaTestingTheCharUpdatedto051234567890123344567890012345567"
}
},
"registeredOffice": {
"deliveryAddress": {
"addressCity": "Mission",
"addressCountry": "CA",
"addressRegion": "BC",
"deliveryInstructions": "",
"postalCode": "V2V 7E6",
"streetAddress": "32434 Richards Ave",
"streetAddressAdditional": ""
},
"mailingAddress": {
"addressCity": "Mission",
"addressCountry": "CA",
"addressRegion": "BC",
"deliveryInstructions": "",
"postalCode": "V2V 7E6",
"streetAddress": "32434 Richards Ave",
"streetAddressAdditional": ""
}
}
},
"parties": [
{
"deliveryAddress": {
"addressCity": "Vancouver",
"addressCountry": "CA",
"addressRegion": "BC",
"postalCode": "V5N 2J9",
"streetAddress": "2343 19th Ave E",
"streetAddressAdditional": ""
},
"mailingAddress": {
"addressCity": "Vancouver",
"addressCountry": "CA",
"addressRegion": "BC",
"postalCode": "V5N 2J9",
"streetAddress": "2343 19th Ave E",
"streetAddressAdditional": ""
},
"officer": {
"email": "argus@highwaythreesolutions.com",
"firstName": "BCREGTEST Delphia",
"id": "0333a572-33b4-4048-af81-d0584c3a99ba",
"lastName": "EIGHTEEN",
"middleName": "",
"organizationName": "",
"partyType": "person"
},
"roles": [
{
"appointmentDate": "2025-01-24",
"roleType": "Completing Party"
},
{
"appointmentDate": "2025-01-24",
"roleType": "Incorporator"
},
{
"appointmentDate": "2025-01-24",
"roleType": "Director"
}
]
}
],
"shareStructure": {
"shareClasses": [
{
"currency": "CAD",
"hasMaximumShares": true,
"hasParValue": true,
"hasRightsOrRestrictions": false,
"id": "5002acd6-790d-4bd0-95fa-a799fcc634b2",
"maxNumberOfShares": 10000,
"name": "common Shares",
"parValue": 100,
"priority": 1,
"series": [],
"type": "Class"
}
]
}
}
}}`
**Actual/ observed behavior/ results**
The API response code can be noted as 500
**{
"message": "Internal server error"
}**
**LOGS**
**Expected behavior**
Response should be understanding for a User regarding the Error / **nrNumber** key and value instead of internal server error
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.