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

JavaScript Build a Simple Dynamic Site with Node.js Creating a Basic Template Engine in Node.js Reading from Files

albert higgins
albert higgins
3,839 Points

Cant get json details

Hi i haven't been able to pull the json info, i keep getting a message 'the workspace is unavailable'?? I thought it could have been my code but i've tried the recent workspaces and it still doesn't work with them. Thanks

albert higgins
albert higgins
3,839 Points

I get this console error when i try adding the /chalkers suffix:

at Profile.emit (events.js:95:17)                                                                                                
at ClientRequest.<anonymous> (/home/treehouse/workspace/profile.js:23:28)                                                        
at ClientRequest.g (events.js:180:16)                                                                                            
at ClientRequest.emit (events.js:95:17)                                                                                          
at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1692:21)                                                           
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)                                                    
at Socket.socketOnData [as ondata] (http.js:1587:20)                                                                             
at TCP.onread (net.js:527:27)

2 Answers

Robyn Allen
Robyn Allen
1,316 Points

Albert, could you post your code on github or other place where we can take a look? I'm noticing the HTTPParser error and Socket/TCP ones which could be an issue with importing a module. Otherwise my best guess would be there's a typo in the path. Since we're trying to access a JSON endpoint and not a workspace maybe the URL for the user is wrong in your code? In any case, send over the code and I'd be happy to take a look!!

albert higgins
albert higgins
3,839 Points

Hey thanks Robyn, I've moved to sorting out an android submission for now, but will be going back node next week, so can post it next week if that's alright?

Robyn Allen
Robyn Allen
1,316 Points

yeah definitely I'll keep an eye out for it. Good luck with the android stuff!