Empty Response to /xml/customer/new/...
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.
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
Support Staff 1 Posted by Marc Guyer on 23 Aug, 2009 12:23 PM
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.
Support Staff 2 Posted by Marc Guyer on 24 Aug, 2009 01:57 PM
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.
Marc Guyer closed this discussion on 24 Aug, 2009 01:57 PM.