Hi,
I have problem accessing the lenders XML file with a Java program. It
was working until recently.
The weird part of the problem is that my partner was able to run it
smoothly on his Macbook (OS Leopard).
A shortened version of the code is as followed:
import java.net.*;
import java.io.*;
public class testing {
public static void main(String[] args) throws Exception {
URL oracle = new URL("
http://api.kivaws.org/v1/lenders/
michael.xml");
URLConnection yc = oracle.openConnection();
System.out.println(yc.getURL());
BufferedReader in = new BufferedReader(
new InputStreamReader(
yc.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
}
The error is as followed:
Exception in thread "main" java.io.IOException: Server returned HTTP
response code: 500 for URL:
http://api.kivaws.org/v1/lenders/michael.xml
I tried to google for a solution and it seems that the error is due to
kiva's server. Please advise
Thanks