Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

seijak
New Contributor

Re: Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

It appears that the Internal Server Error issue is occurring again in the sandbox.  This is experienced by running the Merchant Locator requests again on your site as well as within Postman to replicate it.

 

Generated Response

 

500 Internal Server Error

Header

server: nginx

date: Sun, 03 Jan 2021 13:06:26 GMT

content-type: application/json;charset=UTF-8

content-length: 94

connection: close

x-served-by: l73c013

x-correlation-id: 1609679176_400_951943747_l73c013_VDP_WS

x-app-status: 500

x-frame-options: SAMEORIGIN

x-xss-protection: 1; mode=block

x-content-type-options: nosniff

strict-transport-security: max-age=2592000;includeSubdomains

cache-control: no-cache, no-store, must-revalidate

pragma: no-cache

expires: -1

x-cnection: close

Body
{
  • "responseStatus": {
    • "status": 0,
    • "severity": "ERROR",
    • "message": "Internal server error",
    • "info": ""
    }
}
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

Hi @seijak,

 

Thank you for reporting this. Our network team is currently investigating and we'll share an update as soon as there's one.


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

Hi @seijak,

 

Thank you for your patience. We have fixed the issue and we are getting 200 OK response when we test at our end. Please re-try and let us know how it goes. Thanks again for reporting it.

 


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
HeimirThor
Helper

Re: Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

I have exactly the same issue on both Merchant Search and Merchant Locator endpoints.

 

Was there any conclusion from the project configuration issue mentioned?

 

/Heimir

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

Hi @HeimirThor,

 

I checked both Merchant Search and Merchant Locator APIs on my end and I got "200 OK" responses. If you are getting errors, please share the following information and we'll look into it. For Merchant Search, please use endpoint https://sandbox.api.visa.com/merchantsearch/v1/search

 

  1. End Point URL
  2. Request Header
  3. Request Body
  4. Response Header (include the x-correlation-id)
  5. Response Body

Thanks.


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
HeimirThor
Helper

Re: Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

Thank you Stacey,

I created a new project and that got the Merchant Locator API working.

 

I was hitting v2 of the Merchant Search endpoint.

By switching to v1 of Merchant Search it is now working as well.

I was just misled by the API Reference defaulting to v2.

 

Thanks again and have a nice day!

/Heimir

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

Thanks for the update. Please use v1 of Merchant Search for the time being. Product will open up access to v2 in the coming weeks.


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
soroushm
Regular Visitor

Re: Request Data Invalid ('BusinessApplicationId'/'cdisiAutoGenId' not Available)

Hi,
When I am trying to run the code below in Python, I get a similar error. I don't have this problem when I am using it on API reference web page.

 

url = 'https://sandbox.api.visa.com/merchantlocator/v1/locator'

payload = json.loads('''
{
"searchOptions": {
"matchScore": "true",
"maxRecords": "5",
"matchIndicators": "true"
},
"header": {
"startIndex": "0",
"requestMessageId": "Request_001",
"messageDateTime": "2021-07-09T00:54:54.903"
},
"searchAttrList": {
"distanceUnit": "M",
"distance": "2",
"merchantCountryCode": "840",
"latitude": "37.80",
"longitude": "-122.43",
"merchantName": "Starbucks"
},
"responseAttrList": [
"GNLOCATOR"
]
}''')

timeout = 10

response = requests.post(url,
cert=(cert, key),
auth=(userID, password),
json=payload,
timeout=timeout
)

These are are the header and body responses:

{'Server': 'nginx', 'Date': 'Fri, 09 Jul 2021 00:56:06 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Content-Length': '353', 'Connection': 'keep-alive', 'X-SERVED-BY': 'l55c015', 'X-CORRELATION-ID': '1625792165_941_1522710990_l55c015_VDP_WS', 'X-Backside-Transport': 'OK OK,OK OK', 'X-OPNET-Transaction-Trace': 'a2_182d0bc1-9e8b-471d-b437-91ded99c79db', 'Cache-Control': 'no-cache, no-store, must-revalidate,no-cache, no-store, max-age=0 ,no-cache, no-store, must-revalidate', 'Pragma': 'no-cache,no-cache ,no-cache', 'X-Download-Options': 'noopen', 'Expires': '-1,Thu, 01 Jan 1970 00:00:00 GMT ,-1', 'Content-Language': 'en-US', 'X-Global-Transaction-ID': '69536f0d60e79ea639f40b8d', 'X-APP-STATUS': '200', 'X-Frame-Options': 'SAMEORIGIN', 'X-XSS-Protection': '1; mode=block, 1; mode=block', 'X-Content-Type-Options': 'nosniff, nosniff', 'Strict-Transport-Security': 'max-age=2592000;includeSubdomains, max-age=31536000;includeSubdomains;always'}


b'{"merchantLocatorServiceResponse":{"header":{"messageDateTime":"2021-07-09T00:56:06.201","requestMessageId":"Request_001","responseMessageId":"68VDP82438920210709005606201","numRecordsMatched":0,"numRecordsReturned":0},"status":{"statusCode":"CDI071","statusDescription":"Request Data Invalid (\'BusinessApplicationId\'/\'cdisiAutoGenId\' not Available)"}}}'

Thanks!