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 when calling $handler->getTradepile() #53

Closed
suckedjs opened this issue May 23, 2017 · 2 comments
Closed

Fatal Error when calling $handler->getTradepile() #53

suckedjs opened this issue May 23, 2017 · 2 comments

Comments

@suckedjs
Copy link

It started 3 hours ago.
$handler = $api->getHandler();
foreach($handler->getTradepile() as $trade) {
// Interact with $trade here
}
will result in
Fatal error: Uncaught exception 'BadMethodCallException' with message 'No static method or enum constant '_DEFAULT' in class JKetelaar\fut\api\market\items\ItemType' in C:\xampp\htdocs\ea\vendor\myclabs\php-enum\src\Enum.php:184 Stack trace: #0 C:\xampp\htdocs\ea\src\JKetelaar\fut\api\ImprovedEnum.php(33): MyCLabs\Enum\Enum::__callStatic('_DEFAULT', Array) #1 C:\xampp\htdocs\ea\src\JKetelaar\fut\api\ImprovedEnum.php(33): JKetelaar\fut\api\ImprovedEnum::_DEFAULT() #2 C:\xampp\htdocs\ea\src\JKetelaar\fut\api\market\trading\ItemData.php(141): JKetelaar\fut\api\ImprovedEnum::findByKey('gkCoach', true) #3 C:\xampp\htdocs\ea\src\JKetelaar\fut\api\market\trading\Trade.php(125): JKetelaar\fut\api\market\trading\ItemData::toObject(Array) #4 C:\xampp\htdocs\ea\src\JKetelaar\fut\api\market\Handler.php(144): JKetelaar\fut\api\market\trading\Trade::toObject(Array) #5 C:\xampp\htdocs\ea\sell.php(16): JKetelaar\fut\api\market\Handler->getTradepile() #6 {main} thrown in C:\xampp\htdocs\ea\vendor\myclabs\php-enum\src\Enum.php on line 184

Any clues?

@suckedjs
Copy link
Author

works fine this morning. It has to be something to do with the ea servers?

@JKetelaar
Copy link
Owner

Maybe there was some sort of downtime?

Seems like they had some issues yesterday: http://downdetector.com/status/ea

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

No branches or pull requests

2 participants