chrisgillis / slackwolf

A slack bot that moderates Werewolf games
343 stars 68 forks source link

PHP warning in RealTimeClient.php #49

Open stevenspasbo opened 7 years ago

stevenspasbo commented 7 years ago

PHP Warning: Illegal string offset 'id' in vendor/coderstephen/slack-client/src/RealTimeClient.php on line 312

chrisgillis commented 7 years ago

Looks like its an issue with the slack client package. Can look to see if a newer tagged release or master on that project has fixed the issue and if so update composer.json

stevenspasbo commented 7 years ago

I'm pretty sure it's coming from SlackRTMClient.php, but I haven't done much investigating.

stevenspasbo commented 7 years ago

Adding more details:

`PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Error creating resource: [message] fopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname [file] /home/slackwolf/slackwolf/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php [line] 282 [message] fopen(https://slack.com/api/im.open): failed to open stream: php_network_getaddresses: getaddrinfo failed: No address associated with hostname [file] /home/slackwolf/slackwolf/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php [line] 282' in /home/slackwolf/slackwolf/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php:222 Stack trace:

0 /home/slackwolf/slackwolf/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php(286): GuzzleHttp\Handler\StreamHandler->createResource(Object(Closure))

1 /home/slackwolf/slackwolf/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php(52): GuzzleHttp\Handler\StreamHandler->createStream(Object(GuzzleHttp\Psr7\Request), Array)

2 /home/slackwolf/slackwolf/vendor/guzzlehttp/guzzle/src/Pre in /home/slackwolf/slackwolf/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php on line 65`

I'll look into this more this weekend.