question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check of running Websites results in error "maxContentLength size of -1 exceeded"

See original GitHub issue

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn’t find similar issue

🛡️ Security Policy

Description

Hi,

i’m trying to monitor some websites (that are definitely up) but keep receiving an error “maxContentLength size of -1 exceeded”. Thank you for your help

👟 Reproduction steps

Add new Monitor -> HTTP(S) -> *put in whatever * -> save

👀 Expected behavior

Not to receive an error of any kind, Host being up

😓 Actual Behavior

Error: “maxContentLength size of -1 exceeded”

🐻 Uptime-Kuma Version

1.18.5

💻 Operating System and Arch

Hypervisor: Proxmox Virtual Environment 7.2-11 Virtual Machine: Ubuntu 22.04.1 LTS Kernel: Linux 5.15.60-2-pve

🌐 Browser

Brave 1.44.112 (Chromium 106.0.5249.119)

🐋 Docker Version

20.10.20

🟩 NodeJS Version

No response

📝 Relevant log output

docker logs uptime-kuma
[...]
2022-10-20T13:18:11.703Z [MONITOR] WARN: Monitor #7 'web': Pending: maxContentLength size of -1 exceeded | Max retries: 10 | Retry: 1 | Retry Interval: 60 seconds | Type: http
2022-10-20T13:19:46.563Z [MONITOR] WARN: Monitor #6 'Gitea': Pending: maxContentLength size of -1 exceeded | Max retries: 10 | Retry: 7 | Retry Interval: 60 seconds | Type: http
2022-10-20T13:19:59.942Z [MONITOR] WARN: Monitor #7 'web': Pending: maxContentLength size of -1 exceeded | Max retries: 10 | Retry: 2 | Retry Interval: 60 seconds | Type: http
2022-10-20T13:21:34.661Z [MONITOR] WARN: Monitor #6 'Gitea': Pending: maxContentLength size of -1 exceeded | Max retries: 10 | Retry: 8 | Retry Interval: 60 seconds | Type: http
2022-10-20T13:21:48.133Z [MONITOR] WARN: Monitor #7 'web': Pending: maxContentLength size of -1 exceeded | Max retries: 10 | Retry: 3 | Retry Interval: 60 seconds | Type: http
2022-10-20T13:23:22.753Z [MONITOR] WARN: Monitor #6 'Gitea': Pending: maxContentLength size of -1 exceeded | Max retries: 10 | Retry: 9 | Retry Interval: 60 seconds | Type: http
2022-10-20T13:23:26.475Z [MONITOR] INFO: Get Monitor: 6 User ID: 1
2022-10-20T13:25:10.884Z [MONITOR] WARN: Monitor #6 'Gitea': Pending: maxContentLength size of -1 exceeded | Max retries: 10 | Retry: 10 | Retry Interval: 60 seconds | Type: http
2022-10-20T13:25:36.657Z [MONITOR] WARN: Monitor #7 'web': Pending: maxContentLength size of -1 exceeded | Max retries: 10 | Retry: 1 | Retry Interval: 60 seconds | Type: http
2022-10-20T13:26:59.201Z [MONITOR] WARN: Monitor #6 'Gitea': Failing: maxContentLength size of -1 exceeded | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 20

docker-compose.yml
version: '3'
services:
uptime-kuma:
image: louislam/uptime-kuma:latest
container_name: uptime-kuma
volumes:
- /home//uptime-kuma/data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3001:3001
restart: always

Docker info:
Client: Docker Engine - Community
Version: 20.10.20
API version: 1.41
Go version: go1.18.7
Git commit: 9fdeb9c
Built: Tue Oct 18 18:20:18 2022
OS/Arch: linux/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.20
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
Git commit: 03df974
Built: Tue Oct 18 18:18:08 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.8
GitCommit: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
louislamcommented, Dec 4, 2022

After some research, I managed to fix the issue, but I don’t exactly know what is happening here.

The solution is adding a header Accept-Encoding: gzip, deflate

https://stackoverflow.com/a/55918781/1097815

My guess is the plugin WP Fastest Cache do not handle plain text response without gzip correctly sometimes, force to gzip response fix the issue.

In curl, adding --compress also fix the issue

curl --compress https://www.estiafilosofia.org/

Free feel to try louislam/uptime-time:nightly

2reactions
simonbouchardcommented, Dec 2, 2022

Currently monitoring 99 properties, I’m having the same issue since yesterday, every ~15m from one website only.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Increasing maxContentLength and maxBodyLength in Axios
The maxBodyLength seems to work for me in this simple test, I upload data to a local Express server. If I try to...
Read more >
Post User Registration Axios Error - ERR_BAD_RESPONSE ...
... Axios Error - ERR_BAD_RESPONSE maxContentLength size of -1 exceeded ... Only happens when it runs in the Post User registration flow.
Read more >
SecureTransport Tuning - Axway Support
WARNING: The actual memory usage of a given daemon can exceed the value defined for Max Heap Size. This is due to the...
Read more >
1. Barracuda Web Application Firewall
Enhancement: Layer 7 health check failure errors now display Source IP/Port, ... to the management of the Barracuda Web Application Firewall now run...
Read more >
Akana API Platform Release Notes 2019.1
This was resulting in a failure to display API documentation inside an iframe from a third-party portal running on a domain other than...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found