Comments (7)
it looks like it is working now
from slack-php-api.
Hi,
i'm using php 7.2.34 on debian 9
jolicode/slack-php-api v2.5.0 -> but it looks like it would also be present in higher versions
jane-php/open-api-runtime v5.3.3
jane-php/json-schema-runtime v5.3.3
<?php
declare(strict_types=1);
require_once( 'vendor/autoload.php' );
use Faker\Factory;
use JoliCode\Slack\ClientFactory;
$client = ClientFactory::create(SLACK_TOKEN);
$faker = Factory::create();
$veryLongBody = $faker->text(4096);
$client->chatPostMessage(
[
'text' => 'Test message',
'blocks' => json_encode([
[
'type' => 'section',
'text' => [
'type' => 'plain_text',
'text' => $veryLongBody
]
]
]),
'channel' => 'YOUR USER ID HERE',
'as_user' => true
]
);
I Hope it will help
from slack-php-api.
Hi!
Do you happen to have a longer stacktrace? Because I don't find an isfile
method neither in the client nor in JanePHP.
Thanks!
from slack-php-api.
Hi,
I didn't have a stacktrace yet, but i think the following line is the reason:
https://github.com/janephp/open-api-runtime/blob/1c5248ed5e453b32e8afb325b180d010768a472e/Client/Client.php#L61
from slack-php-api.
Hey @FalkoHilbert, thanks for your report, it seems this bug is more related with https://github.com/janephp/janephp, that's why I'm taking back here :)
Could you provide us what is your OS, PHP version (php --version
), slack-php-api (composer info
) version and a code example (with the path your are using) to help us reproduce your issue ?
Thanks !
from slack-php-api.
We were not able to reproduce the error, but it should be fixed by #108.
Could you please try it? By setting this in your composer.json:
"jolicode/slack-php-api": "dev-upgradeJane"
And then composer update jolicode/slack-php-api
.
Thanks a lot!
from slack-php-api.
Awesome, just released the patch: https://packagist.org/packages/jolicode/slack-php-api#v4.1.1
from slack-php-api.
Related Issues (20)
- No text error code? HOT 4
- Example has syntax error HOT 3
- 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
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.