hawkins / groupme-at-all

A Hubot chat bot to mention every user in a GroupMe channel all at once.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GroupMe responds with 404

hawkins opened this issue · comments

From an email I received:

Hi Josh,

Thanks for creating such a useful bot for groupme. When I try to use the bot in my group, I get an error. Here’s an example of an attempt:

2017-11-14T00:10:19.057099+00:00 app[web.1]: [RECEIVED in 21628473] User: @all attempt #3
2017-11-14T00:10:19.079669+00:00 app[web.1]: [GROUPME RESPONSE] 404 {"meta":{"code":404,"errors":["The requested path does not exist"]},"response":null}

Do you have any guesses as to why this may be happening?

Looks like a bug between how our bot communicates with the GroupMe API.

When making an http post request to http://api.groupme.com/v3/bots/post, we receive a 404. However, when using https, we get a proper response (or error in my case since I didn't supply any credentials).

At first glance, I'm not sure what's causing this and will need some time to investigate this when my work schedule lightens up. However, if anyone reading this is comfortable in JavaScript or CoffeeScript, I'd love any information you could get via debugging!

Interestingly enough, I'm not able to reproduce this issue myself 🤔

Through email, the user confirmed this was not an error with the bot but instead an issue on their side. All is working well now - closing this 🎉