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

Andy Jones's Avatar

Andy Jones

22 Aug, 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 23 Aug, 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 24 Aug, 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 24 Aug, 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

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM