Comments (16)
I cannot reproduce this error, is there a bigger exception log or do you have the example code you're trying to execute?
from php-fut-api.
Closed due to no response.
from php-fut-api.
Sorry had no time to respond. Still got the error!
from php-fut-api.
Please provide the entire stack trace.
from php-fut-api.
New error!
Fatal error: Uncaught JKetelaar\fut\api\errors\login\MainLogin: Unable to login with unknown response With the following message: Incorrect verification code With error code: 295712 in /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php:396 Stack trace: #0 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php(98): JKetelaar\fut\api\user\Login->postTwoFactorForm('https://signin....') #1 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/API.php(123): JKetelaar\fut\api\user\Login->login() #2 /home4/tonikuipers/public_html/mydomain.com/index.php(11): JKetelaar\fut\api\API->login() #3 {main} thrown in /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php on line 396
Update: I received the verification code by mail and used the example form README.md
from php-fut-api.
The verification code provided is incorrect
from php-fut-api.
Where should i provide that verification code?
from php-fut-api.
Within the method that returns the code, as a parameter for the login class.
from php-fut-api.
So it should be like this?
function totp_callback() {
return 'MY_MAIL_CODE';
}
from php-fut-api.
Yes
from php-fut-api.
Still not working. I'am using this code as my index php.
<?php
require_once('vendor/autoload.php');
define('DATA_DIR', __DIR__ . '/data/');
$api = new \JKetelaar\fut\api\API('my_mail', 'my_pass', 'secret_answer', 'totp_callback (not changed)', 'ps4', true);
if($api->login() === true) {
echo('We\'re logged in!' . "\n");
$handler = $api->getHandler();
foreach($handler->getTradepile() as $trade) {
// Interact with $trade here
}
}
function totp_callback() {
return 'my_mail_code';
}
This is the error.
Fatal error: Uncaught JKetelaar\fut\api\errors\login\MainLogin: Unable to login with unknown response With the following message: Incorrect verification code With error code: 295712 in /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php:396 Stack trace: #0 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php(98): JKetelaar\fut\api\user\Login->postTwoFactorForm('https://signin....') #1 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/API.php(123): JKetelaar\fut\api\user\Login->login() #2 /home4/tonikuipers/public_html/mydomain.com/index.php(11): JKetelaar\fut\api\API->login() #3 {main} thrown in /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php on line 396
from php-fut-api.
If i try to login with a Backup code it's giving me another error. But the backup code is used in the Customer portal of EA.
This is the error.
Fatal error: Uncaught JKetelaar\fut\api\errors\login\MainLogin: Unable to login with unknown response With the following message: HTTP/1.1 500 Internal Server Error With error code: 500 in /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php:210 Stack trace: #0 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php(185): JKetelaar\fut\api\user\Login->getAccountInformation() #1 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php(146): JKetelaar\fut\api\user\Login->getShards('0') #2 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php(392): JKetelaar\fut\api\user\Login->getFUTPage() #3 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php(98): JKetelaar\fut\api\user\Login->postTwoFactorForm('https://signin....') #4 /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/API.php(123): JKetelaar\fut\api\user\Login->login() #5 /home4/tonikuipers/public_html/mydomain.com/login.php(18): JKetelaar\fut\api\API->login() in /home4/tonikuipers/public_html/mydomain.com/src/JKetelaar/fut/api/user/Login.php on line 210
from php-fut-api.
Fatal error: Uncaught JKetelaar\fut\api\errors\login\MainLogin: Unable to login with unknown response With the following message: Incorrect verification code With error code: 295712
With the following message: Incorrect verification code
Seems like either a wrong code or a wrong piece of code.
Could you provide your login staging method, to see we could trace this down?
from php-fut-api.
I'am trying to use email verification. But now i switched to Authenticator and it's working fine. (still want to use email verification or backupcodes).
An other quenstion, how to (echo) display the current amount of coins on the account when i logged in? Could you give me any example?
from php-fut-api.
The Market class has a method getCredits
which returns the amount of credits/coins on the account
I'll try to use email verification as a test soon, to see if that works properly.
from php-fut-api.
Thanks!
from php-fut-api.
Related Issues (20)
- Write tests for login
- Add documentation/examples
- Function to relist tradepile? HOT 6
- How to access players sent to the tradepile? HOT 2
- Login HOT 1
- How to use the API?
- List Item function HOT 7
- get TradeID HOT 1
- Search for players HOT 7
- Session HOT 5
- Search for starting price and/or buy price HOT 1
- Use the same instance API on multiple pages. HOT 5
- thxxxxxxxxxxx! JKetelaar ,you are so great HOT 1
- how to buy a player HOT 20
- totp_callback Function HOT 5
- Fatal Error when calling $handler->getTradepile() HOT 2
- FIFA 18 HOT 14
- SBCs HOT 3
- Hi , how to contact you? I want to invite you develop a project about fut api. HOT 4
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 php-fut-api.