Links to Twitter photos in post body results in failed post on 0.9.9


(Phil Nelson) #1

Recently updated from most recent 0.9.8. Users trying to post links to Twitter posts with photos attached results in a 500 error. Example URL: https://twitter.com/dd_toronto/status/451793220956348416

Example error:

<message>key not found: "access_token"</message>
<url>http://forums.structure.io/onebox?url=https%3A%2F%2Ftwitter.com%2Fdd_toronto%2Fstatus%2F451793220956348416&amp;refresh=false</url>
<exception-class>KeyError</exception-class>

(Jeff Atwood) #2

Not a bug. The Twitter oneboxer requires you to set up Twitter logins, as Twitter demands that you have an API key to even use their public API.


(Phil Nelson) #3

Seems like a bug in that it’s something you’d expect to “just work” as a user, and you have no idea why your post failed.


(Sam Saffron) #4

I think the correct failure mode here is just to not expand twitter oneboxes in cases where we have no api key


(Phil Nelson) #5

Absolutely agree with that, Sam.


(Jeff Atwood) #6

I believe this is now fixed.


(Jeff Atwood) #7