Skip to content
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

[web] logger pdo exception handling workaround #5215

Merged

Conversation

goodygh
Copy link
Contributor

@goodygh goodygh commented Apr 29, 2023

Its more of a workaround then a clean solution, as i was not able to log the error in the frontend, or to to resolve the underlying problem for good.

But as it seems we are trying to log every request, but if the request is longer then about 65000 characters it wont fit the column and therefor results in a SQL Error.

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'call' at row 1

It should be fix on API level which would be quite bit of work. As the logging function is not working anyway, i suggest to implement this workaround, so at least the frontend is still working and a error log message in the stdout.

Ref: #5136

@milkmaker
Copy link
Collaborator

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@milkmaker milkmaker added the stale Please update the issue with current status, unclear if it's still open/needed. label Jun 28, 2023
@milkmaker milkmaker closed this Jul 5, 2023
@FreddleSpl0it FreddleSpl0it reopened this Jul 10, 2023
@FreddleSpl0it FreddleSpl0it merged commit cf239dd into mailcow:staging Jul 10, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Please update the issue with current status, unclear if it's still open/needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants