``` PHP Fatal error: Uncaught SoapFault exception...
# general
w
Copy code
PHP Fatal error:  Uncaught SoapFault exception: [soapenv:Server.userException] Two-Factor Authentication required in /export/PHPToolkit/NSPHPClient.php:338
Stack trace:
#0 /export/PHPToolkit/NSPHPClient.php(338): SoapClient->__soapCall('getServerTime', Array, NULL, Array)
#1 /export/PHPToolkit/NetSuiteService.php(146109): NSPHPClient->makeSoapCall('getServerTime', Object(GetServerTimeRequest))
#2 /export/token_based_authentication.php(79): NetSuiteService->getServerTime(Object(GetServerTimeRequest))
#3 /export/get_file_dealdash_qty.php(8): require_once('/export/token_b...')
#4 {main}
  thrown in /export/PHPToolkit/NSPHPClient.php on line 338

Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] Two-Factor Authentication required in /export/PHPToolkit/NSPHPClient.php:338
Stack trace:
#0 /export/PHPToolkit/NSPHPClient.php(338): SoapClient->__soapCall('getServerTime', Array, NULL, Array)
#1 /export/PHPToolkit/NetSuiteService.php(146109): NSPHPClient->makeSoapCall('getServerTime', Object(GetServerTimeRequest))
#2 /export/token_based_authentication.php(79): NetSuiteService->getServerTime(Object(GetServerTimeRequest))
#3 /export/get_file_dealdash_qty.php(8): require_once('/export/token_b...')
#4 {main}
  thrown in /export/PHPToolkit/NSPHPClient.php on line 338
anyone has issue with the PHPToolkit, seems something related to the new 2FA?
r
Never done the PHP calling into NetSuite. But I know today was 2FA test day...that's for sure why the error started today. Work around - build a role real quick with minimum permissions. I have an external system that pushes sales orders to NetSuite, and it doesn't support token auth yet (or we haven't gotten the header auth string right). So we just worked around it with a new role and today had no issues. Kicking the can down the road, but...... Be glad to share our setup when we do pick it up and finish token auth!