Giter VIP home page Giter VIP logo

Comments (11)

TheFrankman avatar TheFrankman commented on August 23, 2024 3

I gave up.

from driver-slack.

Evi444 avatar Evi444 commented on August 23, 2024 1

I had a similar problem, solved updating opis/closure
https://packagist.org/packages/opis/closure

from driver-slack.

SidneyHodieb avatar SidneyHodieb commented on August 23, 2024 1

Do a composer update in your project, it will update all the depencies, after that it will work correctly

from driver-slack.

udovicic avatar udovicic commented on August 23, 2024

Any chance someone found workaround for this?

from driver-slack.

brunohulk avatar brunohulk commented on August 23, 2024

I'm having the same issue, has someone by any chance found the reason?

from driver-slack.

johnson-jnr avatar johnson-jnr commented on August 23, 2024

Hi, not sure about the slack driver but I had the same problem when testing locally using ngrok. I hosted on heroku and now the buttons are working fine.

from driver-slack.

rxng avatar rxng commented on August 23, 2024

This is a real issue - what is the point of asking questions when you can't click the answers and get a reply? Or maybe we are missing something...

from driver-slack.

Evi444 avatar Evi444 commented on August 23, 2024

It works up to php 7.2.33
Read they are working on a new version, mean while try updating opis/closure.
I got it working with php 7.4

from driver-slack.

rxng avatar rxng commented on August 23, 2024

from driver-slack.

Evi444 avatar Evi444 commented on August 23, 2024

I just realized that I was already running opis 3.6 on server with php7. 4 πŸ™„
I had another server with php7. 2 in this one buttons worked fine.

It was after copying files from 7.2 to 7.4 server and trying to update with composer that buttons started working on new version.
Still have to check why, hope it gives a clue....

from driver-slack.

aaronware avatar aaronware commented on August 23, 2024

I know this is super late to this issue. But when I came across this earlier today playing around with the library, what I ended up doing was creating a new custom driver that extended the slack driver. Override the buildPayload method with your own and simply do the following...

		```$payloadData = stripslashes( $request->request->get('payload' ) );
		$payloadData = json_decode( $payloadData, true );```

The reason why it's failing is that the data passed from Slack is escaped in the send so json_decode can't read is properly and will return NULL by default unless the slashes are removed. Once doing that it works as intended.

from driver-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.