You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short version
I am encountering a problem with Forrest v2.11 under Laravel 6.20.8
The problem occurs when the Forrest call $response = Forrest::query($SOQL)
is embedded within a try/catch.
An error results in execution halting without catching an exception
More details
You can reproduce the error with the following code
Without the try/catch the call to Salesforce will fail with a logged error of
6:19:33] local.ERROR: [
{
"message": "No such column 'Companyx' on sobject of type Lead",
"errorCode": "INVALID_FIELD"
}
] {"userId":231,"exception":"[object] (Omniphx\\Forrest\\Exceptions\\SalesforceException(code: 400): [
{
\"message\": \"No such column 'Companyx' on sobject of type Lead\",
\"errorCode\": \"INVALID_FIELD\"
}
] at /var/www/wd-dev/vendor/omniphx/forrest/src/Omniphx/Forrest/Client.php:835)
[stacktrace]
But with the try/catch the execution HALTS without catching an exception. Laravel logs a bizarre pair of lines which I have represented below (substituting hex character representation)
J
<0x00> h<0x00> <0x00> "e`paaf 8 @d cd"
This resembles the error which I reported previously, but it is now after upgrade to latest version of Forrest and with better documentation of the error. The previous error was failed exception handling when "The users password has expired" #261
The text was updated successfully, but these errors were encountered:
You are passing $exception->getMessage() by reference to another string and then logging the resulting string. I think you meant to concatenate $exception->getMessage().
Short version
I am encountering a problem with Forrest v2.11 under Laravel 6.20.8
The problem occurs when the Forrest call
$response = Forrest::query($SOQL)
is embedded within a try/catch.
An error results in execution halting without catching an exception
More details
You can reproduce the error with the following code
Without the try/catch the call to Salesforce will fail with a logged error of
But with the try/catch the execution HALTS without catching an exception. Laravel logs a bizarre pair of lines which I have represented below (substituting hex character representation)
This resembles the error which I reported previously, but it is now after upgrade to latest version of Forrest and with better documentation of the error. The previous error was
failed exception handling when "The users password has expired" #261
The text was updated successfully, but these errors were encountered: