Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error using Twitter with Golang

Tags:

go

twitter

I'm developing a web application with golang and using an API of Twitter to do the login. It runs very well in my computer but I have that error when I put it in production.

Error getting request token, Post http://api.twitter.com/oauth/access_token: Call error 3: invalid security ticket
like image 592
EnriMR Avatar asked Aug 14 '26 00:08

EnriMR


1 Answers

It's hard to tell without seeing the code, but I'd bet that your credentials are incorrect.

I'd recommend using a client library to handle your authentication to make debugging easier. (Here's a Go twitter client library I wrote).

If the error is that you're not creating the correct query, using a well-tested library will fix that. If you still get the same error, check that all of your credentials (including the callback URL!) are correct.

like image 157
chimeracoder Avatar answered Aug 16 '26 02:08

chimeracoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!