VISA BIN Attribute Sharing Service "Invalid input found, please correct the input data"

kiranPlastiq
Occasional Visitor

VISA BIN Attribute Sharing Service "Invalid input found, please correct the input data"

I am trying to VBASS (VISA BIN Attribute Sharing Service) and I am able to hit the VISA and get the response if i use Postman. But, if i use Python/Java and trying to hit the URL, I am getting the below error. I cannot find any difference in the data i sending through code vs postman. 

 

Can someone help me understand 

 

Headers are {'Authorization': "Basic b''", 'Accept': 'application/json'}
Data is {'requestHeader': {'requestTS': '2020-08-04T23:10:17:311', 'requestMessageID': 'test12345'}, 'requestData': {'binRangeSearchIndex': '0', 'binRangeCount': '500'}}
vbd.call_visa_api()
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): sandbox.api.visa.com:443
DEBUG:urllib3.connectionpool:https://sandbox.api.visa.com:443 "POST /v1/binRangeDetails HTTP/1.1" 400 141
{'Server': 'nginx', 'Date': 'Tue, 04 Aug 2020 23:09:27 GMT', 'Content-Type': 'application/json', 'Content-Length': '141', 'Connection': 'keep-alive', 'X-SERVED-BY': 'l55c017', 'X-CORRELATION-ID': '1596582567_483_1773773026_l55c017_VDP_WS', 'x-vdp-normalized-url': '/v1/binRangeDetails', '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-APP-STATUS': '400'}
{"responseStatus":{"code":"9501","severity":"ERROR","message":"Invalid input found, please correct the input data","info":"","status":"400"}}

4 REPLIES 4
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: VISA BIN Attribute Sharing Service "Invalid input found, please correct the input data&quot

Hi @kiranPlastiq,

I noticed in your request payload you are sending 'requestTS': '2020-08-04T23:10:17:311'

Please try 'requestTS': '2020-08-04T23:10:17.311'

and let us know if it fixes the problem.


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.
kiranPlastiq
Occasional Visitor

Re: VISA BIN Attribute Sharing Service "Invalid input found, please correct the input data&

Hi @SLi Still same issue. Below is the result of run again .. 

 

from visa_api import VISABINDetails
vbd = VISABINDetails()
Headers are {'Authorization': "Basic b'TDc3QllBOTdGTVc4Q1lJMllYUkwyMVJkY3dzQlViRkZnRHh6dk42N2E1SlFiamNhUToyMEtJODdCNGV1SWpkZkpINDU3QTU='", 'Accept': 'application/json'}
Data is {'requestHeader': {'requestTS': '2020-08-05T19:11:01.643', 'requestMessageID': 'test12345'}, 'requestData': {'binRangeSearchIndex': '0', 'binRangeCount': '500'}}
vbd.call_visa_api()
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): sandbox.api.visa.com:443
DEBUG:urllib3.connectionpool:https://sandbox.api.visa.com:443 "POST /v1/binRangeDetails HTTP/1.1" 400 141
{'Server': 'nginx', 'Date': 'Wed, 05 Aug 2020 19:10:15 GMT', 'Content-Type': 'application/json', 'Content-Length': '141', 'Connection': 'keep-alive', 'X-SERVED-BY': 'l55c015', 'X-CORRELATION-ID': '1596654615_649_1924935258_l55c015_VDP_WS', 'x-vdp-normalized-url': '/v1/binRangeDetails', '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-APP-STATUS': '400'}
{"responseStatus":{"code":"9501","severity":"ERROR","message":"Invalid input found, please correct the input data","info":"","status":"400"}}

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: VISA BIN Attribute Sharing Service "Invalid input found, please correct the input data&

Hi @kiranPlastiq,

Sorry to hear that the issue persists. The request payload looks good and I am getting a successful response when I test with it. I have asked our tech team to check our logs for 'X-CORRELATION-ID': '1596654615_649_1924935258_l55c015_VDP_WS' and see what the exact payload we have received. I will get back with an update as soon as I have one. Please stay tuned ...

 

 


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: VISA BIN Attribute Sharing Service "Invalid input found, please correct the input data&

Hi @kiranPlastiq,

The request was rejected due to the value in the HTTP request header for authorization. If you are able to get a successful response in Postman, the header authorization should be the same. Please fix and try again. 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.