Justin.tv Error #2048
Just spent the past 2 hours troubleshooting a problem I was having with the Justin.tv API. Thought I’d save a few headaches for anyone else who runs into this problem and post about it.
I was having no trouble getting the API to do the things I wanted, but the Embed code for streams seemed to be borked.
I kept getting: “Something went wrong: Error #2048″
Did some digging and wasn’t able to find any error code documentation. I couldn’t even get embed codes working directly from channels.
Turns out that for whatever reason, Justin.tv doesn’t like “localhost”. That’s a pretty strange quirk… not sure if it’s intentional or not (haven’t seen any mention of it in the API documentation). I added a new host “test.local” and was immediately able to see the embed codes working.
Guide for setting up custom hosts on Mac →
…and on Windows →
Leave a Reply
Comments
Thanks!
Yup this worked for me .
Thank you for the heads up here Trevor, really appreciate it!
Just in case anyone out there is using Visual Studio and trying to get this to work. I have attached 2 screenshots that show you exactly how to get this setup. I was pounding my head because I was trying to use the custom web server option with http://test.local:8236/ as my address. You need to set http://test.local:8236/ to your startup URL instead.
Here is the visual studio options you need to set on the project: http://img.photobucket.com/albums/v112/tronix/Serverconfig1.jpg
Here is the host file entry: http://img.photobucket.com/albums/v112/tronix/serverconfig2.jpg
Happy holidays!
Sure thing!
Thank you! Would have taken me forever to figure this out…