Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Uncaught exception 'Trello\Exception\RuntimeException' #38

Open
ygerzen opened this issue Aug 20, 2016 · 2 comments
Open
Labels
Milestone

Comments

@ygerzen
Copy link

ygerzen commented Aug 20, 2016

hi
i catch fatal error, what is this?

Fatal error: Uncaught exception 'Trello\Exception\RuntimeException' with message 'T' in /www/lib/Trello/HttpClient/Listener/ErrorListener.php:62 Stack trace: #0 [internal function]: Trello\HttpClient\Listener\ErrorListener->onRequestError(Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #1 /www/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #2 /www/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'request.error', Object(Guzzle\Common\Event)) #3 /www/vendor/guzzle/guzzle/src/Guzzle/Http/Message/Request.php(589): Symfony\C in /www/lib/Trello/HttpClient/HttpClient.php on line 152

code in my project:

ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
require 'vendor/autoload.php';
use Trello\Client;
use Trello\Manager;

$client = new Client();

$client->authenticate('example-dsfsfdsf34f43f34ff3f', ''example-dffdsfde3r4443ffvf33', Client::AUTH_URL_CLIENT_ID);

$manager = new Manager($client);

$card = $manager->getCard(''example-fe4f4f54f45f');
echo $client;

@goatherd
Copy link

https://github.com/cdaguerre/php-trello-api/blob/master/lib/Trello/HttpClient/HttpClient.php#L148 does wrap a client exception from the guzzle library.

As 'T' is not a very detailed error message and the detail of the event queue not visible in the dump I can only assume you have a dependency issue (no ext-curl) or something blocking the network.

This is not really a problem with the trello api as far as I can see.

@augustohp augustohp added this to the 1.0 milestone Dec 21, 2016
@augustohp augustohp added the bug label Dec 21, 2016
@augustohp
Copy link
Collaborator

Error messages responses appear to be different than the ones being treated, at least that we could change in order to provide relevant error messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants