The error states that lender_id is incorrectly formed. The lender ID contains a period character. I've never had to encode lender IDs in the past, but its possibles haven't. Hit this situation before. Entering the same URL in the browser produces the same error.
Do I need to start encoding lender ID? Will the server be happy in this example?
Here is a bit more logging:
Sent URL: http://api.kivaws.org/v1/lenders/t.dherck/loans.json?page=1&app_id=com.maynebridge.kivabridge
Received status code: 400
Received status message: HTTP/1.0 400 Bad Request
Received headers: {
"Access-Control-Allow-Headers" = Authorization;
"Access-Control-Allow-Methods" = "POST, GET, OPTIONS";
"Access-Control-Allow-Origin" = "*";
"Access-Control-Max-Age" = 1000;
Connection = "keep-alive";
"Content-Length" = 116;
"Content-Type" = "application/json; charset=UTF-8";
Date = "Thu, 07 Mar 2013 14:50:33 GMT";
Server = Apache;
}
didUseCachedResponse: NO
Received string: { "code" : "org.kiva.MalformedParameter"
, "message" : "The value for \u201clender_id\u201d is improperly formed." }
--
You received this message because you are subscribed to the Google Groups "build-kiva" group.
To unsubscribe from this group and stop receiving emails from it, send an email to build-kiva+...@googlegroups.com.
To post to this group, send email to build...@googlegroups.com.
Visit this group at http://groups.google.com/group/build-kiva?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Martin Butt | Software Engineer
Kiva – Loans that Change Lives
Join us on Twitter, Facebook and LinkedIn!
When I received the error report from the user a few days ago, I suggested he reset his lender ID without the "." as a workaround to the problem while it was being investigated by Kiva. This is likely why it no longer exists in the database. So I think the question remains whether the API is entirely consistent with lender ID creation rules.
--
You received this message because you are subscribed to the Google Groups "build-kiva" group.
To unsubscribe from this group and stop receiving emails from it, send an email to build-kiva+...@googlegroups.com.
To post to this group, send email to build...@googlegroups.com.
Visit this group at http://groups.google.com/group/build-kiva?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.