microsoft / BotFramework-Services

Microsoft Bot Framework Services
Creative Commons Attribution 4.0 International
38 stars 11 forks source link

Any GroupMe message sent with text that contains a TinyURL or bitly URL silently disappears #137

Closed sphanley closed 4 years ago

sphanley commented 5 years ago

I've got a GroupMe bot built with the Bot Framework which has been working smoothly. Without any code changing on my end, as of 10/2 sometime after 6:49 PM EST but before 11:18 PM EST, something seems to have broken where any messages sent by my bot which contain a URL in their text are no longer showing up in GroupMe. The bot instance doesn't seem to receive any sort of error - the messages just disappear in transit. I'm not sure whether this is a bot service issue or a GroupMe issue, but since there's no meaningful bug tracker for GroupMe, I figured I'd start here.

anusharr commented 5 years ago

@sphanley hello again,not sure what might be the reason behind this sudden behavior. Can you share your botHandle or AppID so that I can check the bot logs on my end? In the meanwhile, I will try to repro the behavior on my end to narrow down the issue.

sphanley commented 5 years ago

Hello again @anusharavindrar! :) You can check the AppId "bd0fb49f-b078-4701-9494-d3ddf35bdf5e". An example of the issue is that anytime a user says "!map" in the chat, the bot is supposed to respond with a message containing a bit.ly URL to a map. This message, and all other messages containing URLs, are not making it to GroupMe. The bot ID I provided is for my "sandbox" bot - I've got another bot instance running the same code and the same issue happens there - and no code change has been elevated to my bot since before the issue began.

sphanley commented 5 years ago

Just wanted to update that the issue can be reproduced simply by deploying a stock "Echo bot" instance via the Web App Bot creator within the Azure Portal, and connecting it to the GroupMe channel. Any user-sent message which contains a URL will fail to be echoed back by the bot into the GroupMe chat.

anusharr commented 5 years ago

Hello @sphanley , so I tried to repro your issue, but I was able to successfully get the message with the URL echoed back by the bot. A few clarifying questions to better repro your issue:

  1. Were you able to send messages with URL successfully before? If you could attach a screenshot of the failed test case, then I can try to replicate the same in mine.
  2. Can you make use of ngrok to locally run your bot and try sending messages with URL ?
  3. Are you making use of the GroupMe web client or the desktop client?
  4. Also, are you able to send other types of messages and the test is failing specifically for the messages with URL?

I am looking through your bot logs to zero-in on the probable issue causing this and will post my findings soon.

sphanley commented 5 years ago

Intestingly, the issue appears to have resolved it across all of my bot instances, again without any code change on my end. For completeness's sake, though, here's answers to your questions:

image

And here's instances where the issue was occurring:

Screen Shot 2019-10-07 at 2 48 42 PM

Screen Shot 2019-10-07 at 2 48 23 PM

Hopefully, whatever was at fault has been resolved on the backend and things just stay working. Thanks for your investigation!

anusharr commented 5 years ago

Glad to hear that the issue was resolved and thank you for the detailed explanation. I will mark this as resolved and close it. Please feel free to open a new issue if you encounter problems in the future with the GroupMe channel :)

sphanley commented 5 years ago

Hello @anusharavindrar @dandriscoll @jwiley84: Bad news - I'm experiencing the same issue again, and again, no change whatsoever has been made to my code or azure configuration. Any chance this can be reopened so someone can look into if there's an issue between the Bot Service and GroupMe?

sphanley commented 5 years ago

Interestingly - it seems like the issue may be specifically with URL shorteners. The URLs being sent by my bot are all bit.ly URLs, and we've discovered that when users in our chats send bit.ly or tinyurl URLs in messages, those messages are showing up normally for the users who sent them, but aren't visible to anyone else. Any chance someone on the Microsoft side can investigate whenever there's any known GroupMe changes/issues around blocking URL shorteners?

CoHealer commented 5 years ago

Reactivating with positive repro of the issue. @craigjensen / @jameslew can someone please assist?

sphanley commented 5 years ago

For what it's worth, it seems like other GroupMe users are confirming that it's a general GroupMe issue that's affecting bitly and tinyURL links - sounds like it's not specific to using the Bot Framework GroupMe service. I found other people discussing it on the GroupMe subreddit: https://www.reddit.com/r/GroupME/comments/dem0x5/bitly_links_do_not_show_up_any_longer/

anusharr commented 5 years ago

Hello @sphanley, I was able to repro the issue with bit.ly and tinyURL links, but it works fine with other URL shorteners like Short URL and Cuttly. The issue seems to be on the GroupMe side on how they handle and allow the shortened URLS.

sphanley commented 5 years ago

I agree - it seems like it's a GroupMe issue, not a bot service issue. Do any of you know whether there's a better way to transfer this issue to the relevant GroupMe folks other than just emailing their support address?

Just to capture the last of my findings: I tried a handful of URL shorteners, here's the results.

http://tinyurl.com/c8xugfa - didn’t work http://bit.ly/ZKdYbB - didn’t work http://is.gd/05d0R5 - didn’t work http://goo.gl/4PdrB - worked http://t.co/8svYjZdL - worked http://tiny.cc/sb37sw - worked

jameslew commented 5 years ago

We're working to identify the right team contact for this issue. @mickeydjw is following up.

compulim commented 4 years ago

Talked to @mickeydjw offline, we are still finding the right contacts for this issue and #97.

sphanley commented 4 years ago

For what it's worth, I can't reproduce this issue anymore - bit.ly URLs are back to showing up normally in my group chats. I'm assuming it was fixed, either intentionally or incidentally, on the GroupMe side.

97 (and even more so #101), though, are still significant impediments to integrating a GroupMe bot. I appreciate the ongoing support!

CoHealer commented 4 years ago

Thanks @sphanley. With this not repro'ing any more I'm going to close this issue. Please continue to track #97 and #101 for further updates.