Open gulshanmehta opened 2 years ago
The CloudFormation console shows if all resources were created successfully. All resources are grouped under a Lambda application for easy access. If no other restrictions are on the account (such as SCPs) and everything else looks smooth:
systemctl status twitter-streamer
Check the log of the service:
sudo journalctl -u twitter-streamer.service
This could provide details on possible Twitter credentials erroring out (such as when accounts are placed on hold).
Hope this helps.
@vpalomog : I am also getting Failed to start Twitter Streams Listener. Checked all details I am not sure on twitter side do we need anything else
@vpalomog Please let me know if you have any update do you have this working ?
I recently updated the supported API version and added cloudwatch logging to get additional details. Make sure you also add the Bearer Token from Twitter.
Can you post what are you getting on executing this commands in the instance?
systemctl status twitter-streamer
Check the log of the service:
sudo journalctl -u twitter-streamer.service
Hi, I think twitter has now changed its policy to and if you want to use Twitter API 2.0 you need enterprise account which has some cost to it.Is your solution working ? Apr 12 03:35:01 ip-x.x.x.x.ec2.internal systemd[1]: twitter-streamer.service: main process exited, code=exited, status=1/FAILURE Apr 12 03:35:01 ip-x.x.x.x.ec2.internal systemd[1]: Unit twitter-streamer.service entered failed state. Apr 12 03:35:01 ip-x.x.x.x.ec2.internal systemd[1]: twitter-streamer.service failed. Apr 12 03:35:02 ip-x.x.x.x.ec2.internal systemd[1]: twitter-streamer.service holdoff time over, scheduling restart. Apr 12 03:35:02 ip-x.x.x.x.ec2.internal systemd[1]: Stopped Twitter Streams Listener. Apr 12 03:35:02 ip-x.x.x.x.ec2.internal systemd[1]: start request repeated too quickly for twitter-streamer.service Apr 12 03:35:02 iip-x.x.x.x.ec2.internal systemd[1]: Failed to start Twitter Streams Listener. Apr 12 03:35:02 iip-x.x.x.x.ec2.internal systemd[1]: Unit twitter-streamer.service entered failed state. Apr 12 03:35:02 ip-x.x.x.x.ec2.internal systemd[1]: twitter-streamer.service failed.
And logs
-- Logs begin at Sat 2023-04-08 04:54:10 UTC, end at Thu 2023-04-13 03:16:07 UTC. --
Apr 11 04:32:52 ip-x.x.x.x.ec2.internal systemd[1]: Started Twitter Streams Listener.
Apr 11 04:32:53 ip-x.x.x.x.ec2.internal python3[2314]: {'ResponseMetadata': {'RequestId': 'XXXX', 'HTTP
Apr 11 04:32:53 ip-x.x.x.x.ec2.internal python3[2314]: Traceback (most recent call last):
Apr 11 04:32:53 ip-x.x.x.x.ec2.internal python3[2314]: File "/usr/local/twitter-streamer.py", line 61, in
I have used other scripts to test my authentication and it all valid and works.Please let me know
Hi, trying to test this github, have done the deployment in our aws account, but don't see any tasks created under Connect based on keywords under monitoring as well as no cloudwatch logs under connect instance log group....can you advise if there is some to validate if the stack is deployed correctly , or any issues that could be causing no outputs post deployment...thanks