Last Updated: February 25, 2016
·
1.197K
· bidyut

Twurl gets plagued by syntax errors

Problem

So you did something to your twurl setup and it is not a happy camper, and refuses to run anything; even commands that worked before. Say you could fetch the home timeline before, but now it just doesn't work. This happens very easily if you ever just copied and used the authorize command without changing the username.

$ twurl authorize -u username -p password --consumer-key thekey --consumer-secret thesecret

Solution

Turns out the solution is simple. The problem stems from having an invalid .twurlrc file. Typically random characters get added at the last line. The reason is still unclear, but at least the fix is simple. Remove the last line with the random characters.

Problem solved.