Code Monkey home page Code Monkey logo

Comments (4)

pyrech avatar pyrech commented on May 17, 2024

Hello @cgunnels

I failed to reproduce the issue with your snippet. Do you still experiment it? Could it be a temporary issue of Slack's API?

from slack-php-api.

cgunnels avatar cgunnels commented on May 17, 2024

Hello @cgunnels

I failed to reproduce the issue with your snippet. Do you still experiment it? Could it be a temporary issue of Slack's API?

This is still happening.

Here is more of the stack trace:

JoliCode\Slack\Exception\SlackErrorResponse: Slack returned error code "no_text" in /var/www/vendor/jolicode/slack-php-api/src/HttpPlugin/SlackErrorPlugin.php:36
Stack trace:
#0 /var/www/vendor/php-http/httplug/src/Promise/HttpFulfilledPromise.php(31): JoliCode\Slack\HttpPlugin\SlackErrorPlugin->JoliCode\Slack\HttpPlugin\{closure}(Object(Nyholm\Psr7\Response))
#1 /var/www/vendor/jolicode/slack-php-api/src/HttpPlugin/SlackErrorPlugin.php(37): Http\Client\Promise\HttpFulfilledPromise->then(Object(Closure))
#2 /var/www/vendor/php-http/client-common/src/PluginChain.php(48): JoliCode\Slack\HttpPlugin\SlackErrorPlugin->handleRequest(Object(Nyholm\Psr7\Request), Object(Closure), Object(Http\Client\Common\PluginChain))
#3 /var/www/vendor/php-http/client-common/src/Plugin/ErrorPlugin.php(62): Http\Client\Common\PluginChain->Http\Client\Common\{closure}(Object(Nyholm\Psr7\Request))
#4 /var/www/vendor/php-http/client-common/src/PluginChain.php(48): Http\Client\Common\Plugin\ErrorPlugin->handleRequest(Object(Nyholm\Psr7\Request), Object(Closure), Object(Http\Client\Common\PluginChain))
#5 /var/www/vendor/php-http/client-common/src/PluginChain.php(63): Http\Client\Common\PluginChain->Http\Client\Common\{closure}(Object(Nyholm\Psr7\Request))
#6 /var/www/vendor/php-http/client-common/src/PluginClient.php(90): Http\Client\Common\PluginChain->__invoke(Object(Nyholm\Psr7\Request))
#7 /var/www/vendor/jolicode/slack-php-api/generated/Runtime/Client/Client.php(82): Http\Client\Common\PluginClient->sendRequest(Object(Nyholm\Psr7\Request))
#8 /var/www/vendor/jolicode/slack-php-api/generated/Client.php(1806): JoliCode\Slack\Api\Runtime\Client\Client->executeEndpoint(Object(JoliCode\Slack\Api\Endpoint\ChatPostMessage), 'object')
#9 /var/www/app/MyScript.php(88): JoliCode\Slack\Api\Client->chatPostMessage(Array)

from slack-php-api.

pyrech avatar pyrech commented on May 17, 2024

This is quite strange because I tested yesterday with the exact same snippet (only the token and channel id should change obviously) and it worked and the message appeared in our Slack worskpace:

image

I don't really understand why Slack API is throwing you such error. I try to find some clue on Google of anyone experimenting the same issue with this endpoint but it looks like people getting no_text error with chat.postMessage are always sending message with blocks or attachments - which is not your case here 😕

I wonder if this could be related to a custom configuration of your channel or workspace?

from slack-php-api.

lyrixx avatar lyrixx commented on May 17, 2024

Hello,

I'm closing this issue for lack of activity.

Thanks for opening it in the first place.

from slack-php-api.

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.