Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Jeff Lange
Jeff Lange
8,788 Points

Adding json argument to curl request returns "(23) Failed writing body."

In the Mailchimp API track, in this video https://teamtreehouse.com/library/mailchimp-api/mailchimp-api/retrieving-list-data at the 5:00 mark we are supposed to enter in the request in the following format:

curl https://us10.api.mailchimp.com/3.0/lists | json

This is the same format used later on in the video (around 5:30). The nice thing about it is that it pretty prints the output of curl rather than the barf you get without | json.

Problem for me is, terminal says:

-bash: json: command not found

Shows the curl progress temporarily, and then returns:

(23) Failed writing body

curl requests made without the | json argument are successful.

mick coll
mick coll
40 Points

I'm having exactly the same issue. Any help appreciated.