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 trialRUIBO LIU
8,051 Pointspublic static void getActiveListing(Callback<ActiveListings> callback) {
getApi().activeListings("Shop,Images", callback);
}
Change the parameters mentioned into "Shop,Images" rather than "Images,Shop" in the video.
Another spelling things you need pay attention to is "listings/active". The plural form of "listing".
Christopher Stewart
7,531 PointsI am getting an error message: Unable to resolve host "openapi.etsy.com": No address associated with hostname
If I copy and paste the final url (found on the RetrofitError) into the chrome it works just fine...
Turns out my laptop was running low on memory restarted it and it works just fine.
2 Answers
aimensasi
11,343 Pointsyes I did, make sure the endpoint is correct(spelling). if it did not work try to make the call using OkHttp, it is much easer.
Sachin Jayaram
5,461 PointsEtsy.java file: setEndpoint("https://openapi.etsy.com/v2")
make sure its https and not http.
Page Nguyen
Courses Plus Student 4,007 PointsPage Nguyen
Courses Plus Student 4,007 PointsI have the same problem. I did everything exactly like Huson but it returned failure all the time. Did you solved this problem?