Cloudkibo / KiboPush

0 stars 1 forks source link

(Sentry) Unable to determine file size - twitter event #10646

Closed sojharo closed 3 years ago

sojharo commented 3 years ago

Title (Sentry) Unable to determine file size - twitter event

Sentry StackTrace and Sentry Link https://sentry.io/organizations/cloudkibo/issues/2084324479/?project=292307&referrer=slack

{"tweet":{"media":[{"id":1337139834088005600,"id_str":"1337139834088005632","indices":[95,118],"additional_media_info":{"title":"","description":"","embeddable":true,"monetizable":false},"media_url":"http://pbs.twimg.com/media/Eo56_ZSXEAE2qEM.jpg","media_url_https":"https://pbs.twimg.com/media/Eo56_ZSXEAE2qEM.jpg","url":"https://t.co/MI4uXHUyKG","display_url":"pic.twitter.com/MI4uXHUyKG","expanded_url":"https://twitter.com/JoeBiden/status/1337143047990099969/video/1","type":"video","video_info":{"aspect_ratio":[1,1],"duration_millis":26985,"variants":[{"content_type":"application/x-mpegURL","url":"https://video.twimg.com/amplify_video/1337139834088005632/pl/KU6F7j5e-mDyA6P-.m3u8?tag=13"},{"bitrate":1280000,"content_type":"video/mp4","url":"https://video.twimg.com/amplify_video/1337139834088005632/vid/720x720/RrSJQLG9pQXaPfgD.mp4?tag=13"},{"bitrate":832000,"content_type":"video/mp4","url":"https://video.twimg.com/amplify_video/1337139834088005632/vid/480x480/atso8OznWBMJgskp.mp4?tag=13"},{"bitrate":432000,"content_type":"video/mp4","url":"https://video.twimg.com/amplify_video/1337139834088005632/vid/320x320/v_eii7OsU4d5nPjU.mp4?tag=13"}]},"sizes":{"thumb":{"w":150,"h":150,"resize":"crop"},"small":{"w":680,"h":680,"resize":"fit"},"medium":{"w":720,"h":720,"resize":"fit"},"large":{"w":720,"h":720,"resize":"fit"}}}]},"savedMsg":{"_id":"5fd28f2578466e5f90d4b483","pageId":"5cf05a3867f03776b3c77679","companyId":"5a89ecdaf6b0460c552bf7fe","autoposting_type":"twitter","autopostingId":"5edd824ac1476827c3eb489b","sent":5,"message_id":"1337143047990100000","seen":0,"clicked":0,"datetime":"2020-12-10T21:12:05.465Z","__v":0},"tweetId":"1337143047990099969","userName":"Joe Biden","page":{"connected":true,"greetingText":"Hi {{user_full_name}}! Please tap on getting started to start the conversation.","isWelcomeMessageEnabled":true,"gotPageSubscriptionPermission":false,"isApproved":true,"whitelist_domains":[],"subscriberLimitForBatchAPI":100,"connectedFacebook":true,"tasks":["ANALYZE","ADVERTISE","MODERATE","CREATE_CONTENT","MANAGE"],"_id":"5cf05a3867f03776b3c77679","pageId":"420421482129595","pageName":"Democrats vs Republicans","accessToken":"EAAUTvApDOEYBAG7nba9EOuAdBgN4cZAN9SpQBxOawgaBqm2vwAllSwneFN3ArPM5Gzu1mg7WM9xzuElcYq3wVk4cXaHg7VLns5aTSr7R1c6Li1hEXScZAsA0pIkM1upcPZBZCykTK7oIF7mkU7XzZB34e75rUp8BqZBIxLMh1GFHpIZATU8XYAcRQeStkufUPQZD","userId":{"emailVerified":true,"isSuperUser":true,"wizardSeen":true,"uiMode":"all","advancedMode":true,"eulaAccepted":true,"permissionsRevoked":false,"skippedFacebookConnect":false,"showIntegrations":false,"connectFacebook":true,"disableMember":false,"tfaEnabled":false,"_id":"5a89ecdaf6b0460c552bf7fd","name":"Jawaid Ekram","email":"jekram@hotmail.com","domain":"cloudkibo","hashedPassword":"NGP74ADdZj8qwvljDZhpH13C+Q14op/Evk6g6IR0FgCmuHcAsEsYYO6tpWFWE0fFTmP08VAU5PYpSsA9/MGSgA==","salt":"BOJqBH7Yud1hxzF5D+Fddw==","domain_email":"cloudkibojekram@hotmail.com","role":"buyer","pagesTourSeen":false,"subscribeToMessengerTourSeen":false,"mainMenuTourSeen":false,"autoPostingTourSeen":false,"liveChatTourSeen":false,"subscriberTourSeen":false,"growthToolsTourSeen":false,"pollTourSeen":false,"convoTourSeen":false,"surveyTourSeen":false,"workFlowsTourSeen":false,"dashboardTourSeen":false,"getStartedSeen":false,"updatedAt":"2018-02-18T21:15:06.664Z","createdAt":"2018-02-18T21:15:06.663Z","plan":"plan_C","__v":0,"facebookInfo":{"name":"Jawaid Ekram","provider":"facebook","profilePic":"https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=10203251379761289&height=50&width=50&ext=1609059586&hash=AeQR4Y1LduUHv12jG8s","fbToken":"EAAUTvApDOEYBAK010cv6vE3JE6wRZABlRuIZCvwDeflqeAabvq6C4ZCuvO6Hij57SdoCZA5fThjCeI71a5v1OgLkNuynahOAXKur6HfG7siWqwX45Jp8oEOJ5kIo3GEMcBPnCNNDvVPmTDy3X8naN7GWqtofuTtVgwIDPwcNoJBQZA0p7zI5p","fbId":"10203251379761289","email":"jekram@yahoo.com"},"platform":"whatsApp","lastLogin":"2020-12-10T12:32:28.077Z","lastLoginIPAddress":"182.189.221.83"},"companyId":"5a89ecdaf6b0460c552bf7fe","likes":35,"pagePic":"https://graph.facebook.com/v6.0/420421482129595/picture","__v":0,"welcomeMessage":[{"id":0,"componentType":"text","text":"Hi {{user_full_name}}! Thanks for getting in touch with us on Messenger. Please send us any questions you may have"},{"componentName":"text","componentType":"text","id":1592282003913,"text":"Please share your Email Address with us","isEmailPhoneComponent":true,"quickReplies":[{"content_type":"user_email","payload":"[{\"action\":\"set_subscriber_field\",\"fieldName\":\"email\"},{\"action\":\"send_message_block\",\"blockUniqueId\":1592282003969}]","title":"Email Address"}]}]}}

Events: 2

Users: 0

Last Seen: 7 hours ago at 2:12 AM Pakistan Time

First Seen: 7 hours ago at 2:12 AM Pakistan Time

Environment: Production

Server_Name: KiboChat

Page Name: Democrats vs Republicans

Subscriber Name: Not available

User Name: Twitter event

IP: N/A

Front End or Backend End issue? Backend issue

Additional Data Add any other context about the problem here.

sentry-io[bot] commented 3 years ago

Sentry issue: KIBOPUSH-2WP

arveenkumar55 commented 3 years ago

Root Cause: The root cause of this issue is we are getting this error from library remote file size which we are using to fetch the video size in auto-posting. It was happening some time. I posted same tweet it was working fine and i got the tweet on messenger.

Solution: What is the way that we can ensure that this code doesn’t break again? I wrote the logic whenever we get this error during fetch video size in auto posting we will send a link of that video.

arveenkumar55 commented 3 years ago

The code is complete. When pull request will merge i will assign for testing.

arveenkumar55 commented 3 years ago

@AnishaChhatwani please test on staging

AnishaChhatwani commented 3 years ago

working fine on staging

arveenkumar55 commented 3 years ago

@AnishaChhatwani please test on production

AnishaChhatwani commented 3 years ago

working fine on production