Giter Site home page Giter Site logo

Comments (16)

harjyotbagga avatar harjyotbagga commented on May 25, 2024 1

Thanks for the positive response! 😄 I've started working on it. Please assign this issue to me. I'll get back in a couple of days.

from operationcode-pybot.

the-bose avatar the-bose commented on May 25, 2024

Hello, I would like to work on this

from operationcode-pybot.

utkryuk avatar utkryuk commented on May 25, 2024

I would like to take this task.

from operationcode-pybot.

harjyotbagga avatar harjyotbagga commented on May 25, 2024

Hey, I would like to try and resolve this issue, by adding the !search command. Request you to assign it to me.
Since I'm just starting out with open source, it'd be great if you could give me a week's time, to solve this issue with a PR. 😄

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on May 25, 2024

@harjyotbagga We'd love the help. If you have any questions, let us know!

from operationcode-pybot.

harjyotbagga avatar harjyotbagga commented on May 25, 2024

@aaron-suarez I needed a bit of help.
I followed all the steps in the readme.

  • Made a slack app and integrated it into my workspace.
  • Updated the pybot.env variables, using the Secret code and the O-Auth token from the Slack app.
  • Installed all dependencies and was able to successfully run the bot on the localhost.
  • Made my localhost open to the public using ngrok.
  • To test a few commands, I added the command in slash-commands on the slack API, setting the URL as https://54bac023ae26.ngrok.io.

After which I tried running the command on slack, giving me a "dispatch error" and "401 Unauthorized" on my terminal. Pl note, I have verified the auth tokens and there is no issue there. I would appreciate some guidance from your end.

[https://github.com/slackapi/bolt-js/issues/579 ] A similar issue has been reported here.

pybot-term

pybot-commands

pybot-slack

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on May 25, 2024

Oh weird, so the bot itself is producing a 401? What happens when you hit it manually (with like Postman or curl, rather than going through slack)?

from operationcode-pybot.

harjyotbagga avatar harjyotbagga commented on May 25, 2024

I have tried sending the request via Postman. I made an OAuth2.0 authentication token by reading the Slack App docs and sent a POST request to https://df94f7be0da7.ngrok.io/slack/commands?command=roll after I updated the slash command request URL in the slack app dashboard.
I got a 500 Server Internal Error that looks something like,
pybot-err
I am not able to understand how do I fix this internal error. I am getting no error on the python terminal when I send the command via slack, but the response states /roll failed with the error "dispatch_failed" and the the ngrok terminal still says 401 Unauthorized.
Any guidance would be more than helpful.

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on May 25, 2024

If you join our slack team at https://operationcode.org/join I'd be happy to set up a slack call and pair with you on troubleshooting it. I don't know from just looking at it what the problem could be.

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on May 25, 2024

I just got the /roll failed with the error "dispatch_failed" error on my slack workspace as well... I'm wondering if this warrants an issue. @AllenAnthes when you get a chance can you check and see if you also get this error?

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on May 25, 2024

Note, it does not happen on prod right now (which is good). I wonder if it's something that we introduced recently...

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on May 25, 2024

I think it might be related to #227. @LivingInSyn did you ever see this "dispatch_failed" situation when you were working on the issue?

from operationcode-pybot.

LivingInSyn avatar LivingInSyn commented on May 25, 2024

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on May 25, 2024

I noticed that we merged that to master directly and our branches are based on staging, so it's true, it's not due to #227... Perhaps another recent change. I'll dig deeper when I have a chance, I'm not sure I'll be able to right now

from operationcode-pybot.

aaron-junot avatar aaron-junot commented on May 25, 2024

I was able to resolve it by making sure that the right ngrok url was in, and that my bot was running correctly. So I'm thinking it might be an issue like that @harjyotbagga

from operationcode-pybot.

JudsonStevens avatar JudsonStevens commented on May 25, 2024

We'll be implementing this based on previous work into the new rewritten bot. This one is fairly low priority though so may take a bit.

from operationcode-pybot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.