Visa Developer Community

Helper

404 on HelloWorld

Hello,

 

I am creating just a basic Java project to test connectivity with Visa.  I have the helloworld working in SOAPUI but when I test it with Java code I get a 404 exception.  I can't see what is wrong with my request.  It looks the same as the SOAPUI raw request.

 

Here is my request:

GET https://sandbox.api.visa.com/vdp/helloworld
Accept: application/json, application/*+json
Content-Length: 0
Authorization: Basic NUUxNVlZUkw0RFhLNk5ZNEw4RkkyMURmRTk4MklVMHM4M3lpclBXbEtHMFpZMUVmWTowZHdGbklNZGN5MnRYU3lQMDgxSzBWMG5iRDZNOVAxNXhJdkxBZw==

 

Here is the response:

404 NOT_FOUND Not Found
Server: Apache
X-SERVED-BY: l73c029
X-CORRELATION-ID: 1543888192_497_86_l73c029_VDP_ARM
Cache-Control: private ,no-cache, no-store, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT ,-1
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
Pragma: no-cache
Content-Language: en-US
Content-Length: 0
Date: Tue, 04 Dec 2018 01:49:52 GMT
Connection: keep-alive

3 REPLIES
Community Scholar

Re: 404 on HelloWorld

Hi @devin,

 

What API are you using for this project?

 

 

Thanks,
Diana

Highlighted
Helper

Re: 404 on HelloWorld

Hey,

 

Currently I am only trying to get the helloworld working but I do have the following APIs added to my project:

Preauthorized Payment Cancellation Service
Visa Transaction Controls
Visa Account Updater
Card-On-File Data Inquiry
Helper

Re: 404 on HelloWorld

Hey,
I figured out the issue. I am using spring's restTemplate and it seems to send the following Accept header by default:
Accept: application/json, application/*+json
I forced the code to only send:
Accept: application/json
and it worked. To be honest, this seems like an issue on the Visa side. The first request seems to be sending a valid Accepts header.