error 500 id:null

sernocturno
Helper

error 500 id:null

hi, im trying the cybersource api and when i send the request, i have this error

 

{
  "ID": null,
  "status": "500",
  "statusInformation": {
    "reason": "SYSTEM_ERROR",
    "message": "Request failed due to unknown system error."
  },
  "submitTimeUTC": "2018-02-15T09:41:15Z"
}

i dont know what to do, it ask for an id and i dont know what is this id

 

this is the url

 

https://sandbox.api.visa.com/cybersource/v2/credits/?apikey=

7 REPLIES 7
API_Products
Visa Developer Support Specialist

Re: error 500 id:null

Hi,

 
Thanks for posting to the Visa developer community forum. Can you please confirm if the error you are receiving indicates that you have a 500 – internal server error? Because if it is a 500 – internal server error, then the easiest way to troubleshoot connectivity issues is to use the SOAPUI tool.

 

Our Getting Started with Visa Developer guide includes steps to access the helloworld application, which is the fastest way to test your access credentials and to create sample HTTP requests that work. In the “Getting Started with Visa Developer” guide, please refer to the “Testing Two-Way SSL Connectivity Using SOAPUI” section (https://developer.visa.com/vdpguide#soap_ui). Once you get your SOAPUI connection to work, please review the raw HTTP request – you will get the exact value of an encoded username and a password that works. You can then compare the working value with the value you generate in your IDE.

 

Can you please confirm once you have successfully completed the steps in the Get Started guide (including using SOAP UI and the Hello World sample application) to validate your credentials?

 

If the issue persists, can you please provide more information on the error you have received? Please send the response request of the error received, screenshot and the Correlation ID to Developer@visa.com.
 
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>Then try to click on the add API link.
5>You can find the Correlation ID in the network log for add API call.

 

Thank you,

Diana




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.

sernocturno
Helper

Re: error 500 id:null

hello i try the soapui and this is the raw response

HTTP/1.1 500 Internal Server Error
Server: Apache
X-SERVED-BY: l73c001
X-CORRELATION-ID: 1518882632_029_70_l73c001_VDP_ARM
X-Cnection: close
x-response-time: 9ms
v-c-correlation-id: 89d3cecb-0f1a-4aab-adf8-37fa9ea1d605
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
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;
Content-Type: application/json;charset=UTF-8
Content-Language: en-US
Content-Length: 167
X-Cnection: close
X-Cnection: close
Date: Sat, 17 Feb 2018 15:50:32 GMT
Connection: close

{"ID":null,"status":"500","statusInformation":{"reason":"SYSTEM_ERROR","message":"Request failed due to unknown system error."},"submitTimeUTC":"2018-02-17T03:50:32Z"}

the same problem on soapui

 

this is the request

POST https://sandbox.api.visa.com/cybersource/v2/payments?apikey=6MOLF2TPL0SXGZMPSAKM21LceJzc0zMlOmGA8kaQhowdxH7po HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
x-pay-token: xv2:1518882483:d8ac075b47e1e27553c1e81e8167d8cb80910e1c07c9778876428623cbb27c4d
Content-Length: 0
Host: sandbox.api.visa.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_144)

it say 500: internal server error, thats means is visa server problem?

 

P/S: when i make the helloworld request i have a correct response

P/S2: the request body is empty

daveg
Regular Visitor

Re: error 500 id:null

Same thing happens to me. I downloaded the Javascript example code and managed to call the HelloWorld endpoint to test the connectivity and receive a 200.

 

If I try a POST to

https://sandbox.api.visa.com/cybersource/v2/payments?apikey={apikey}

using the body and header as the example at  https://developer.visa.com/capabilities/cybersource/reference#cybersource__cybs_payments_v2

 

I always get {"ID": null, "status": "500",  "statusInformation": {  "reason": "SYSTEM_ERROR",  "message": "Request failed due to unknown system error." }, "submitTimeUTC": "2018-02-19T12:10:12Z" }

 

Also tried with a simplified body such as 

"amount": "0.99""currency": "GBP","payment":"cardNumber": "4111111111111111""cardExpirationMonth": "10""cardExpirationYear": "2020" } and I get the same response
 
Also the reponse is quite generic and it's basically impossible understanding what's the issue.
 
Please help 😄
 
API_Products
Visa Developer Support Specialist

Re: error 500 id:null

Hello,

 

Thank you for providing this information. Please ensure you have completed the steps in the “Get Started” documentation to test your connectivity and the integration with your application via this link here - https://developer.visa.com/vdpguide#get-started-overview

 

Also, can you please review this video to make sure you are using the correct process to get credentials to start building with XPay Token?

 

Getting Started with Visa Developer > API Key – Shared Secret (X-Pay-Token)

https://developer.visa.com/guides/vdpguide#api_key__shared_secret_xpaytoken

 

Thank you,

Diana




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.

sernocturno
Helper

Re: error 500 id:null

i already test the xpaytoken with another api and works properly so, isn't the message the response say internal server error so i think is visa apis problem

lmwangi
Regular Visitor

Re: error 500 id:null

I am also attempting to interact with the cybersource REST payment API [1] and having issues. As of a day or two ago, I was hitting the 500 error that is being reported in this thread. I've been following the documentation to the T [2]; to no end. Today, the exact same code that was giving me a 500 error yesterday is returning a 404 on the payments API endpoint[3]. Is there a stability issue with the sandbox environment? Has it been changed in the recent past?

 

1. https://developer.visa.com/capabilities/cybersource/docs

2. https://developer.visa.com/capabilities/cybersource/reference#

3. https://gist.github.com/labeneator/1fdd6ea358c394684ee4caf4c2fb67ca

 

API_Products
Visa Developer Support Specialist

Re: error 500 id:null

Hi,

 

Thanks for asking your question to the Visa Developer Community! The cause of the 404 error could be that the card you are using is not enrolled for the Tokens API call. Please enroll and try again. 

 

Thank you,

Diana




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.