-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: OCI8 error and FormatException #6188
Comments
What is the correct error? Exact error message? |
How did you connect? Sample code to reproduce the error? |
here is the correct error
and here's what I did to see that
and this error
you get when you don't put a print_r |
here is my .env
|
It seems when outputing Oracle error info as JSON, JSON encode error occurred. Do you know what data cannot be converted to JSON? |
Sorry I don't know thank for your replay but the program suddenly runs perfect |
If you want output in JSON, it seems that if an error occurs that cannot be converted to JSON, then it is inevitable that you cannot see error output that you want. In any case, please refer to the log file, as the error should be recorded. |
Ok Thanks @kenjis |
PHP Version
8.1
CodeIgniter4 Version
4.2.0
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
Oracle
What happened?
There is a bug on OCI8 connection.php (execute() function)
Can't return the true error, I set the wrong table name but it throws
Uncaught CodeIgniter\Format\Exceptions\FormatException: Failed to parse json string, error: "Type is not supported". in vendor\codeigniter4\framework\system\Format\JSONFormatter.php:41
when I comment on this code
throw $e;
connection.php line 210
it outputs the correct error
sorry for my bad English
Steps to Reproduce
Connect to oracle database
try to miss spell the table name
Expected Output
Anything else?
No response
The text was updated successfully, but these errors were encountered: