Re: Python Sample Code Not Working

danny-lyubenov
Regular Visitor

Python Sample Code Not Working

Hi,

 

I am trying to get some hands-on experience with the Python starter code provided from Visa Global ATM Locator API. After creating a virtual environment and installing both requirements files, I copied the sample code from the README file. However, after executing the file I get - "Exception when calling AtmlocatorApi->postatms_inquiry: Object of type AtmsInquirypostPayload is not JSON serializable". Any suggestions please? Many thanks.

7 REPLIES 7
API_Products
Visa Developer Support Specialist

Re: Python Sample Code Not Working

Hey @danny-lyubenov

 

I've logged case INC9185554 for the engineering team to investigate. We're currently working to resolve your issue and someone will get back to you soon.

 




Thanks,

Diana



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

danny-lyubenov
Regular Visitor

Re: Python Sample Code Not Working

Hi Diana,

 

Thank you for looking into it.

 

Best wishes,

 

Danny

API_Products
Visa Developer Support Specialist

Re: Python Sample Code Not Working

Hey @danny-lyubenov,

 

To resolve the issue, can you start writing the sample code with an API tool such as SoapUI, Postman or VDC Playground and then try using your own knowledge of rest calls in your code? Usually the error you are seeing is because the object is not a valid request of response objects anymore. The mapping is incorrect and the sample code is outdated. 

 

You can use Postman , SOAP UI or VDP Playground tool to test the APIs. Please see user guides below for respective tools.
 
Postman – https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_... 
 
SOAP UI – https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_... 
 
VDP Playground – https://community.developer.visa.com/t5/Developer-Tools/How-to-test-and-troubleshoot-APIs-with-the-V...

 




Thanks,

Diana



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

techsolver
Regular Visitor

Re: Python Sample Code Not Working

API_Products
Visa Developer Support Specialist

Re: Python Sample Code Not Working

Hey @techsolver

 

I'd like to help you resolve the issue. Please provide us with the following information:

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

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.

 




Thanks,

Diana



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

API_Products
Visa Developer Support Specialist

Re: Python Sample Code Not Working

Hey @danny-lyubenov,

 

I'd like to follow up to see how things are going with your project? Can you please let us know if the issue is resolve? Please let us know if there's anything else we can help with. 




Thanks,

Diana



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

API_Products
Visa Developer Support Specialist

Re: Python Sample Code Not Working

Hey @danny-lyubenov and @techsolver,

 

Can you please let us know if you continue to experience an issue? If so, someone will be happy to help and I'll check the status of the issue. Please let us know if you have other questions. If we don't hear from you, we'll take you off our contact list.

 




Thanks,

Diana



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