Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to connect to Twitter: #16

Open
SaltyQuetzals opened this issue Jan 13, 2021 · 5 comments
Open

Failing to connect to Twitter: #16

SaltyQuetzals opened this issue Jan 13, 2021 · 5 comments

Comments

@SaltyQuetzals
Copy link

SaltyQuetzals commented Jan 13, 2021

Steps to Reproduce

  1. Install Twitter bridge through the Ansible method
  2. Start a room with @_twitterpuppet_bot
  3. Type in link
  4. Click link provided by the bot
  5. Authorize, and paste PIN into chat with @_twitterpuppet_bot
  6. Receive the following error in chat:
Status] 7: Twitter as <USERNAME> (<username>): disconnected!: failed to connect. TypeError: Cannot read property 'unsubscribe' of null

I'm not sure what I did incorrectly here. Any advice?

Logs from journalctl matrix-mx-puppet-twitter:

[TwitterPuppet:Twitter] warn: Failed to subscribe to user, retrying... TypeError: Cannot read property 'subscribe' of null
     at Twitter.<anonymous> (/opt/mx-puppet-twitter/build/twitter.js:92:55)
     at Generator.next (<anonymous>)
     at fulfilled (/opt/mx-puppet-twitter/build/twitter.js:5:58)
     at runMicrotasks (<anonymous>)
     at processTicksAndRejections (internal/process/task_queues.js:97:5)
[TwitterPuppet:Twitter] error: Failed to start up puppet 8 TypeError: Cannot read property 'unsubscribe' of null
     at Twitter.<anonymous> (/opt/mx-puppet-twitter/build/twitter.js:97:40)
     at Generator.next (<anonymous>)
     at fulfilled (/opt/mx-puppet-twitter/build/twitter.js:5:58)
     at runMicrotasks (<anonymous>)
     at processTicksAndRejections (internal/process/task_queues.js:97:5)
@Sorunome
Copy link
Owner

Sorunome commented Feb 22, 2021

Did you configure your reverse-proxy? Did you set up the environment parameter?

@ndarilek
Copy link

I did set up the account activity environment at https://developer.twitter.com/en/account/environments. Unfortunately, entering the label into the environment field didn't work for me. :(

@Sorunome
Copy link
Owner

Is it an "Account Activity API" environment? Does the app have DM permissions? Did you copy the keys / tokens over correctly? Did you set up the reverse-proxy? Is it serving a valid https certificate?

@ndarilek
Copy link

ndarilek commented Feb 23, 2021 via email

@Happyfeet01
Copy link

Happyfeet01 commented Feb 26, 2021

i have also tried to connect Matrix with Twitter.

The first step was, that i create an APP and then an Actitivity API here: https://developer.twitter.com/en/account/environments

But the Bot tells me: disconnected!: failed to connect. TypeError: Cannot read property 'unsubscribe' of null

Logentrys of the Docker Image:

Feb 26 06:35:08 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:08.890 [BotProvisioner] info: Got message to process with arg=list Feb 26 06:35:08 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:08.895 [bot-sdk-MatrixLiteClient] info: (REQ-31) PUT http://matrix-nginx-proxy:12080/_matrix/client/r0/rooms/!KQlEInPqAEiIZgFpcT%3Adackelexpress.com/send/m.room.message/1614317708895__REQ30 Feb 26 06:35:09 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:09.047 [bot-sdk-Appservice] info: Processing transaction 43 Feb 26 06:35:09 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:09.047 [bot-sdk-Appservice] info: Processing event of type m.room.message Feb 26 06:35:09 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: 172.21.0.4 - - [26/Feb/2021:05:35:09 +0000] "PUT /transactions/43?access_token=<tokenid> HTTP/1.1" 200 2 "-" "Synapse/1.27.0" Feb 26 06:35:43 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:43.860 [bot-sdk-Appservice] info: Processing transaction 44 Feb 26 06:35:43 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:43.860 [bot-sdk-Appservice] info: Processing event of type m.room.message Feb 26 06:35:43 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: 172.21.0.4 - - [26/Feb/2021:05:35:43 +0000] "PUT /transactions/44?access_token=<tokenid> HTTP/1.1" 200 2 "-" "Synapse/1.27.0" Feb 26 06:35:43 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:43.877 [BotProvisioner] info: Got message to process with arg=@username@twitter.com Feb 26 06:35:43 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:43.880 [bot-sdk-MatrixLiteClient] info: (REQ-32) PUT http://matrix-nginx-proxy:12080/_matrix/client/r0/rooms/!KQlEInPqAEiIZgFpcT%3Adackelexpress.com/send/m.room.message/1614317743880__REQ31 Feb 26 06:35:44 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:44.009 [bot-sdk-Appservice] info: Processing transaction 45 Feb 26 06:35:44 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: Feb-26 05:35:44.010 [bot-sdk-Appservice] info: Processing event of type m.room.message Feb 26 06:35:44 ubuntu-4gb-fsn1-1 matrix-mx-puppet-twitter[1767]: 172.21.0.4 - - [26/Feb/2021:05:35:44 +0000] "PUT /transactions/45?access_token=<tokenid> HTTP/1.1" 200 2 "-" "Synapse/1.27.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants