Coder Social home page Coder Social logo

Comments (3)

finack avatar finack commented on September 17, 2024

Funny I just ran into this as well. It showed up when I @ mentioned the bot in a channel it was not subscribed to, and then instructed slack to send them a message to the mention. The response has "ts":"1469909830.000018" in the attachment section.

I changed the json serializer to a string and this fixed the issue. Tests pass as well. But not sure what this breaks in reality.

It looks like the slack docs do call for an integer but now they are returning a string (as well?).

To replicate follow the NewRTM example, connect to slack, @ mention the bot, then have slackbot send them a link to your message.

The other thing of interest that I have not figured out is after this happens restarting the bot causes ConnectingEventErrors and then you get throttled. It goes away but not sure if it was because of time passing or me messing with /inviting and /kicking the bot.

from slack.

pendowski avatar pendowski commented on September 17, 2024

I changed to to string as well but it crashed in some other place, not sure if in different person's DM or @yourownnick. Will have to check it tomorrow but I think that changing the type doesn't solve the underlying issue. Is there a way to decode to int even if it's string (or from int to string)? Some custom dynamic mapping in go?

from slack.

mlabouardy avatar mlabouardy commented on September 17, 2024

use interface{} as data type
see https://github.com/nlopes/slack/issues/115

from slack.

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.