TCP connection error - connection timed out and reset by peer

ss_xpay
New Contributor

TCP connection error - connection timed out and reset by peer

Chronology of the problem:

1. We execute the request https://api.visa.com/visadirect/fundstransfer/v1/pushfundstransactions  and receive an error at 2023-11-03T13:18:53.12652+02 with dial tcp 198.217.139.34:443: connect: connection timed out. 
2. At 2023-11-03T13:26:11.28204+02 we are trying to check the transaction status but getting a network error read tcp our_host->198.217.139.34:443: read: connection reset by peer.
3. From 2023-11-03T13:26:11.28204+02 till 2023-11-03T16:08:17.05666+02:00 we tried to check the transaction status every 5 min
4. At 2023-11-03T16:08:17.05666+02:00, checking the transaction status was completed without a network error, we received a response that the transaction does not exist and assigned the final transaction failure status on our side.
 
The system configuration on our part did not change at this time. Other calls to the Visa Direct API were successful during this time period. What could be wrong?
3 REPLIES 3
jenn_kh
Community Moderator

Re: TCP connection error - connection timed out and reset by peer

Hi @ss_xpay, Thank you for reaching out.! An agent is looking into this and will get back to you soon. If any community members know a solution, please feel free to reply to this thread.

ss_xpay
New Contributor

Re: TCP connection error - connection timed out and reset by peer

We also noticed persistent problems when performing a GET request https://api.visa.com/visadirect/v1/transactionquery. We do not receive a response, but only connection reset by peer. All other API requests are executed without problems. Perhaps we need to pass some additional headers to the GET request? We tried to launch VDP with the request https://api.visa.com/visadirect/v1/transactionquery - everything works correctly, the outgoing IP address is the same as that of our software client.

API_Products
Visa Developer Support Specialist

Re: TCP connection error - connection timed out and reset by peer

Hi @ss_xpay,

 

I conducted a sandbox test on the Visa Direct Transaction Query and received a successful request / response payload. Please see the sample request / response below. Please try again and share your result with us. 

 

End Point https://sandbox.api.visa.com/visadirect/v1/transactionquery?acquiringBIN=408999&transactionIdentifie...
Method GET
Request

Response
[{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"401010350420","transactionDate":"27-09-2023","transactionTime":"00:01:25","responseCode":"5","systemsTraceAuditNumber":"350420","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327000038654","transactionDate":"27-09-2023","transactionTime":"00:39:57","responseCode":"5","systemsTraceAuditNumber":"38654","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327000038657","transactionDate":"27-09-2023","transactionTime":"00:40:21","responseCode":"5","systemsTraceAuditNumber":"38657","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327000038659","transactionDate":"27-09-2023","transactionTime":"00:40:44","responseCode":"5","systemsTraceAuditNumber":"38659","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327000038661","transactionDate":"27-09-2023","transactionTime":"00:41:12","responseCode":"5","systemsTraceAuditNumber":"38661","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327000038664","transactionDate":"27-09-2023","transactionTime":"00:41:18","responseCode":"5","systemsTraceAuditNumber":"38664","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327002038678","transactionDate":"27-09-2023","transactionTime":"02:11:02","responseCode":"5","systemsTraceAuditNumber":"38678","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327002038679","transactionDate":"27-09-2023","transactionTime":"02:11:44","responseCode":"5","systemsTraceAuditNumber":"38679","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327002038683","transactionDate":"27-09-2023","transactionTime":"02:12:58","responseCode":"5","systemsTraceAuditNumber":"38683","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"},{"approvalCode":"21324K","transactionIdentifier":"234234322342343","acquiringBin":"408999","retrievalReferenceNumber":"327002038686","transactionDate":"27-09-2023","transactionTime":"02:13:04","responseCode":"5","systemsTraceAuditNumber":"38686","transactionType":"CRED VOUCHER","actionCode":"00","statusCode":"COMPLETED"}]
Response Header
Status Code: 200
Server : nginx
Date : Thu, 25 Jan 2024 23:50:41 GMT
Content-Type : application/json
Content-Length : 4819
Connection : keep-alive
X-SERVED-BY : -7556f69585v44
X-CORRELATION-ID : 1706226634_884_1717228441_-7556f69585v44_VDP_WS
X-APP-STATUS : 200
Cache-Control : no-cache, no-store, must-revalidate
X-Pagination : true
X-Count : 55950
encrypted : true
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 0
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000;includeSubdomains
Pragma : no-cache
Expires : -1
Content-Security-Policy-Report-Only : default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-Content-Security-Policy-Report-Only : default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-WebKit-CSP-Report-Only : default-src 'self' https://*.v.me https://*.visa.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.visa.com https://*.v.me;img-src 'self' https://*.v.me https://*.visa.com https://*.unica.com https://ad.doubleclick.net;style-src 'self' 'unsafe-inline' https://*.visa.com;object-src https://*.v.me https://*.visa.com data:;report-uri /logging/logCSPReport;
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000;includeSubdomains;always

 

 




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.