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
returns JSON instead of a simple string as shown here
{"errors":[{"code":415,"message":"Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings"}]}
So the code then throws an exception with $result as the exception message instead of parsing the json.
so that e->message is
"errors":[{"code":415,"message":"Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings"}]
The added double quotes inside the message causes problems when outputing what is assumed to be a string
Expected behavior
On exception e->message should be a simple string, not json
Actual behavior
e->message is json
Versions:
TwitterOAuth: [e.g. v4.0.1]
PHP: v [e.g. v7.4.33]
The text was updated successfully, but these errors were encountered:
In twitterOauth.php if there is an exception in the call to this:
$result = $this->oAuthRequest($url, 'POST', $parameters);
returns JSON instead of a simple string as shown here
{"errors":[{"code":415,"message":"Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings"}]}
So the code then throws an exception with $result as the exception message instead of parsing the json.
so that e->message is
"errors":[{"code":415,"message":"Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings"}]
The added double quotes inside the message causes problems when outputing what is assumed to be a string
Expected behavior
On exception e->message should be a simple string, not json
Actual behavior
e->message is json
Versions:
The text was updated successfully, but these errors were encountered: