Empty Response to /xml/customer/new/...

Andy Jones's Avatar

Andy Jones

Aug 22, 2009 @ 05:44 AM

I've created a newCustomer successfully with the PHP quick start library provided.

There's only one problem... I receive an HTTP 200 response (which is good) whose body is of length zero.

Okay sure.

However, the XML parser chokes on the empty string "". So when I did in fact add a customer succesfully I have an exception thrown. Perhaps I'm doing something wrong.

  1. Support Staff 1 Posted by Marc Guyer on Aug 23, 2009 @ 12:23 PM

    Marc Guyer's Avatar

    Andy -- Thanks for the bug report! I can replicate this but it's not immediately obvious what the problem is. I should be able to get to it later today.

  2. Support Staff 2 Posted by Marc Guyer on Aug 24, 2009 @ 01:57 PM

    Marc Guyer's Avatar

    Hmm... So, I'm pretty sure you were actually getting a 302 and not a 200. At any rate, the curl client was not following redirects. I've fixed the client lib so that it does. However, you shouldn't need this patch because I've also eliminated the redirect in the API along with all the other unnecessary redirects.

    Let me know if you have any more problems.

  3. Marc Guyer closed this discussion on Aug 24, 2009 @ 01:57 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac