ConstructorUNSUPPORTED_CLIENT 处的异常:TLS 1.0 已在此组织中禁用
Exception at ConstructorUNSUPPORTED_CLIENT: TLS 1.0 has been disabled in this organization
我一直在关注这个包:https://github.com/davispeixoto/Laravel-5-Salesforce
我知道包需要 4 个参数:
return [
'username' => 'YOUR_SALESFORCE_USERNAME',
'password' => 'YOUR_SALESFORCE_PASSWORD',
'token' => 'YOUR_SALESFORCE_TOKEN',
'wsdl' => 'path/to/your/enterprise.wsdl.xml',
];
我给他们提供了一切,试试这个
try {
echo print_r(Salesforce::describeLayout('Account'), true);
} catch (Exception $e) {
echo $e->getMessage();
echo $e->getTraceAsString;
}
我得到了
Exception at ConstructorUNSUPPORTED_CLIENT: TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https.
- 导航到设置
- 在快速查找栏中,输入重要更新
- Select 重要更新
- 在更新名称列下找到需要 TLS 1.1 或更高版本的 HTTPS 连接
- 点击停用。
我一直在关注这个包:https://github.com/davispeixoto/Laravel-5-Salesforce
我知道包需要 4 个参数:
return [
'username' => 'YOUR_SALESFORCE_USERNAME',
'password' => 'YOUR_SALESFORCE_PASSWORD',
'token' => 'YOUR_SALESFORCE_TOKEN',
'wsdl' => 'path/to/your/enterprise.wsdl.xml',
];
我给他们提供了一切,试试这个
try {
echo print_r(Salesforce::describeLayout('Account'), true);
} catch (Exception $e) {
echo $e->getMessage();
echo $e->getTraceAsString;
}
我得到了
Exception at ConstructorUNSUPPORTED_CLIENT: TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https.
- 导航到设置
- 在快速查找栏中,输入重要更新
- Select 重要更新
- 在更新名称列下找到需要 TLS 1.1 或更高版本的 HTTPS 连接
- 点击停用。