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

Data too long for column info_json when monitoring cloudfunctions.net Endpoints #5087

Open
1 task done
David-Development opened this issue Sep 4, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working
Milestone

Comments

@David-Development
Copy link
Contributor

David-Development commented Sep 4, 2024

πŸ“‘ I have found these related issues/pull requests

πŸ›‘οΈ Security Policy

Description

When monitoring Google cloudfunctions ER_DATA_TOO_LONG errors are thrown in the logs and no Certificate Expiry dates are shown.

πŸ‘Ÿ Reproduction steps

Any fake cloudfunction url does the trick for testing even though it returns 404 - Like: https://abc.cloudfunctions.net/

πŸ‘€ Expected behavior

No errors in the logs / Certificate Expiry etc. are displayed correctly. Considering that the JSON it's trying to save has a significant amount of characters it probably makes sense to strip some infos from it..?

πŸ˜“ Actual Behavior

No certificate expiry date is visible / errors are shown in logs

🐻 Uptime-Kuma Version

2.0.0-dev

πŸ’» Operating System and Arch

Docker

🌐 Browser

Google Chrome 128.0.6613.114

πŸ–₯️ Deployment Environment

  • Runtime: Docker
  • Database: MariaDB 11.4.3
  • Filesystem used to store the database on: HDD
  • number of monitors: 5

πŸ“ Relevant log output

uptime-kuma    |   code: 'ER_DATA_TOO_LONG',
uptime-kuma    |   errno: 1406,
uptime-kuma    |   sqlState: '22001',
uptime-kuma    |   sqlMessage: "Data too long for column 'info_json' at row 1",
uptime-kuma    |   sql: 'insert into `monitor_tls_info` (`info_json`, `monitor_id`) values (\'{\\"valid\\":true,\\"certInfo\\":{\\"subject\\":{\\"CN\\":\\"misc.google.com\\"},\\"issuer\\":{\\"C\\":\\"US\\",\\"O\\":\\"Google Trust Services\\",\\"CN\\":\\"WR2\\"},\\"subjectaltname\\":\\"DNS:misc.google.com, DNS:*.actions.google.com, 
....
:EC:'... 60832 more characters
uptime-kuma    | }
@David-Development David-Development added the bug Something isn't working label Sep 4, 2024
@louislam louislam added this to the 2.0.0 milestone Sep 5, 2024
@louislam
Copy link
Owner

louislam commented Sep 5, 2024

Thanks for the report. I think we have to review all VARCHAR/TEXT fields.

@CommanderStorm CommanderStorm changed the title Data too long for column 'info_json' when monitoring cloudfunctions.net Endpoints Data too long for column info_json when monitoring cloudfunctions.net Endpoints Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants