Closed DavidLangva closed 6 years ago
The error:
ArgumentError (wrong number of arguments (given 2, expected 1)): 18:08:26 web.1 | 18:08:26 web.1 | app/controllers/tweets_controller.rb:22:in `update'
The code on line 22 which is causing this error: client.update("I'm tweeting with @gem!", in_reply_to_status_id: 402712877960019968)
client.update("I'm tweeting with @gem!", in_reply_to_status_id: 402712877960019968)
I also tried this and received the same error.: client.update("I'm tweeting with @gem!", {in_reply_to_status_id: 402712877960019968})
client.update("I'm tweeting with @gem!", {in_reply_to_status_id: 402712877960019968})
I took the code straight from the documentation to make sure it just wasn't an error with my variables.
Also, posting a regular update works and streaming with filter works.
I was reusing the client. When I tried making a new client instance on every request, it worked as expected.
The error:
The code on line 22 which is causing this error:
client.update("I'm tweeting with @gem!", in_reply_to_status_id: 402712877960019968)
I also tried this and received the same error.:
client.update("I'm tweeting with @gem!", {in_reply_to_status_id: 402712877960019968})
I took the code straight from the documentation to make sure it just wasn't an error with my variables.
Also, posting a regular update works and streaming with filter works.