Comments (4)
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.
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.
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:
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.
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)
- Type hint on @return is confusing HOT 1
- Method does not specify that exception might be thrown. HOT 4
- Some values not reachable? HOT 4
- ConversationsRepliesGetResponse200 should provide typing for `messages` other than `mixed[]` HOT 5
- UsersList and UsergroupsList should accept new parameter: "team_id" HOT 2
- Don't use deprecated factory method
- Required fields in `Objs*` classes should not be nullable HOT 1
- Question: Recommended endpoint for `response_url` HOT 3
- setNormalizer() must implement interface Symfony\Component\Serializer\Normalizer\NormalizerInterface HOT 1
- Missing @throws in the phpdocs HOT 2
- Support for the Bookmarks API? HOT 2
- Creation of dynamic property JoliCode\Slack\Api\Endpoint\ChatPostMessage::$formParameters is deprecated HOT 5
- Fatal Error Jane\JsonSchemaRuntime\Normalizer\CheckArray HOT 7
- Requirement for Read Only Repo: jane-php/open-api-runtime HOT 1
- Fatal error: Declaration of `ChatPostMessage::transformResponseBody()` must be compatible with `Jane\OpenApiRuntime\Client\EndpointTrait` HOT 1
- Discussion: Jane8 and `psr/http-message:^2.0` HOT 1
- Image Blocks in posts returning "invalid_blocks" error. HOT 1
- Flacky CI due to Slack rate limit
- PHP>=8.2 Creation of dynamic property is deprecated HOT 4
- authRevoke should be POST not GET?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-php-api.