Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Bit stuck / nodejs dynamic website
The response is still the same just header and footer ? I has a look at the error message and the only one is "The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature."
Ihave tried adding this at the top but not sure if im doing it right or if thats what is causing the problem?
This is going to seem a bit silly, but it looks like the problem is that you capitalized the b in badges.
That fixed your code for me, but let me know if that doesn't work for you. Happy coding! :)
Yea i have tried it without the charset bit, I only put that in because of an error I was getting about encoding ? I dont know what it is i have tried it lots of different ways and simplified bits, the code is running fine its just not fetching the profile as you said but I havent changed anything in the profile.js file because it was all in the project files download. I think i might just start it again, but thanks anyway.
Hey got it working, thanks for the help, I did have the right project files but i tried it again and it worked, i think you were right the first time , I was accessing the JSON object wrong, but its working now.