We have been getting Internal Server error on the Merchant Offer API. We have dropped multiple threads and emails but have not been able to get a resolution. Can someone please assist on this?
We have lost a lot of development time due to this.
Hey @cardwallet,
Sorry to hear you're experiencing an issue and that you've had an issue getting this resolved. I'm happy to help you resolve this issue, hence, to move forward please send the response request of the error received, screenshot and the Correlation ID.
Below are the steps to get the Correlation ID using a Google Chrome browser.
1>Open Chrome menu.
2>Click on More tools then Developer tools.
3>Check the box to Preserve Log for the Network Tab.
4>Click on the error and go to the Headers.
5>You can find the Correlation ID in the network log.
Hi
i have pass all pram and also wastage of so much time so please check this api and response that given below.Hare you can check the (x-correlation-id) also
2) what is wrong with this api (hare also i am getting-correlation-id)
https://sandbox.api.visa.com/vmorc/offers/v1/all?max_offers=1
I am getting x-correlation-id in the response and passed it into the request.
It is working with helloworld and return statusCode:200
But with offers/v1/all it is not working and return statusCode:500
And few days back it was working properly, and was not getting the error as I'm getting right now.
It is working with status code 200, you can check it here x-correlation-id in request header and response header
-----------------request-------------------------
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "sandbox.api.visa.com",
"port": 443,
"hostname": "sandbox.api.visa.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/vdp/helloworld",
"path": "/vdp/helloworld",
"href": "https://sandbox.api.visa.com/vdp/helloworld"
},
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"User-Agent": "VDP_SampleCode_Nodejs",
"Authorization": "Basic STdDMFpWT0hZWjY2STdDWVZPSUIyMW1XTWtSUWM0S0FJaEpGZThNXzhrYzF6ZktOTToyeVJXcjc1Sg==",
"x-correlation-id": "4WZ3E7BERNTG_SC",
"x-client-transaction-id": "6IFOMBCXL7M1"
}
}
}
-------------response:--------------------------
"statusCode": 200,
"body": "{"timestamp":"2020-11-17T14: 06: 44","message":"helloworld"}",
"headers": {
"server": "nginx",
"date": "Tue, 17 Nov 2020 14:06:44 GMT",
"content-type": "application/json;charset=UTF-8",
"content-length": "58",
"connection": "close",
"x-served-by": "l55c015",
"x-correlation-id": "1605622004_735_410531996_l55c015_VDP_WS",
"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=15768000;includeSubdomains;always",
"cache-control": "no-cache, no-store, must-revalidate",
"pragma": "no-cache",
"expires": "Thu, 01 Jan 1970 00:00:00 GMT ,-1",
}
--------------------------------------------------------------------------------------------------------------------------------------------------------------
But with the same details it is not working here and status code : 500
request:
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "sandbox.api.visa.com",
"port": 443,
"hostname": "sandbox.api.visa.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/vmorc/offers/v1/all",
"path": "/vmorc/offers/v1/all",
"href": "https://sandbox.api.visa.com/vmorc/offers/v1/all"
},
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"User-Agent": "VDP_SampleCode_Nodejs",
"Authorization": "Basic STdDMFpWT0hZWjY2STdDWVZPSUIyMW1XTWtSUWM0S0FJaEpGZThNXzhrYzF6ZktOTToyeVJXcjc1Sg==",
"x-correlation-id": "ENST6W52F041_SC",
"x-client-transaction-id": "JWRW6DT7LOXF"
}
}
}
---------------------response---------------
"statusCode": 500,
"body": " <message> <response-code/> <error-message>Failed to establish a backside connection</error-message></message>",
"headers": {
"server": "nginx",
"date": "Tue, 17 Nov 2020 14:13:15 GMT",
"content-type": "text/xml",
"content-length": "110",
"connection": "close",
"x-served-by": "l55c016",
"x-correlation-id": "1605622394_808_1534322778_l55c016_VDP_WS",
"x-backside-transport": "FAIL FAIL",
"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"
}
---------------------------------------------------------------------------------------------------------------------------------------------------
Kindly look into the issue if you can help me out from this.
And few days back it was working properly, and was not getting the error as I'm getting right now.
Looking forward to your valuable response.
Thank you
Hey @cardwallet,
The Visa Merchant Offers Resource Center API update is currently in pending status, and will hopefully be resolved by November 23rd or next week. Once the update is complete, please test again and share your results with us. I'm happy to help.
Now i am getting response
Api: https://sandbox.api.visa.com/vdp/helloworld
response:[
{
"statusCode": 200,
"body": "{\"timestamp\":\"2020-11-21T13:40:33\",\"message\":\"helloworld\"}",
"headers": {
"server": "nginx",
"date": "Sat, 21 Nov 2020 13:40:33 GMT",
"content-type": "application/json;charset=UTF-8",
"content-length": "58",
"connection": "close",
"x-served-by": "l73c016",
"x-correlation-id": "1605966033_959_708097482_l73c016_VDP_WS",
"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=15768000;includeSubdomains;always",
"cache-control": "no-cache, no-store, must-revalidate",
"pragma": "no-cache",
"expires": "Thu, 01 Jan 1970 00:00:00 GMT ,-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;"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "sandbox.api.visa.com",
"port": 443,
"hostname": "sandbox.api.visa.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/vdp/helloworld",
"path": "/vdp/helloworld",
"href": "https://sandbox.api.visa.com/vdp/helloworld"
},
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"User-Agent": "VDP_SampleCode_Nodejs",
"Authorization": "Basic STdDMFpWT0hZWjY2STdDWVZPSUIyMW1XTWtSUWM0S0FJaEpGZThNXzhrYzF6ZktOTToyeVJXcjc1Sg==",
"x-correlation-id": "RK1KKDP5L94P_SC",
"x-client-transaction-id": "BA6ELALCOPG3"
}
}
},
"{\"timestamp\":\"2020-11-21T13:40:33\",\"message\":\"helloworld\"}"
]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Api: https://sandbox.api.visa.com/vmorc/offers/v1/all?max_offers=1
response:
[
{
"statusCode": 500,
"body": "\n\n\nFailed to establish a backside connection",
"headers": {
"server": "nginx",
"date": "Sat, 21 Nov 2020 13:41:50 GMT",
"content-type": "text/xml",
"content-length": "110",
"connection": "close",
"x-served-by": "l73c013",
"x-correlation-id": "1605966110_234_884574158_l73c013_VDP_WS",
"x-backside-transport": "FAIL FAIL",
"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"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "sandbox.api.visa.com",
"port": 443,
"hostname": "sandbox.api.visa.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/vmorc/offers/v1/all",
"path": "/vmorc/offers/v1/all",
"href": "https://sandbox.api.visa.com/vmorc/offers/v1/all"
},
"method": "GET",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"User-Agent": "VDP_SampleCode_Nodejs",
"Authorization": "Basic STdDMFpWT0hZWjY2STdDWVZPSUIyMW1XTWtSUWM0S0FJaEpGZThNXzhrYzF6ZktOTToyeVJXcjc1Sg==",
"x-correlation-id": "NI4A06F400TE_SC",
"x-client-transaction-id": "15R8SD6IPDO7"
}
}
},
"\n\n\nFailed to establish a backside connection"
]
Thanks
Hey @cardwallet,
The Visa Merchant Offers Resource Center API update was scheduled to be completed last week. Hence, please test the Visa Merchant Offers Resource Center API again and share your test results with us. Please let us know if you have questions. We are happy to help.