hibiken / asynqmon

Web UI for Asynq task queue
MIT License
668 stars 152 forks source link

centos Server: superfluous response.WriteHeader #293

Closed xiongdi9456 closed 1 year ago

xiongdi9456 commented 1 year ago

I run both docker and [asynqmon_v0.7.1_linux_amd64.tar.gz] file in CentOS Server, they all have some message like

Asynq Monitoring WebUI server is listening on port 8080
2023/02/20 12:25:48 http: superfluous response.WriteHeader call from github.com/hibiken/asynqmon.(*uiAssetsHandler).ServeHTTP (static.go:46)
2023/02/20 12:26:05 http: superfluous response.WriteHeader call from github.com/hibiken/asynqmon.(*uiAssetsHandler).ServeHTTP (static.go:46)
2023/02/20 12:26:06 http: superfluous response.WriteHeader call from github.com/hibiken/asynqmon.(*uiAssetsHandler).ServeHTTP (static.go:46)

and the web in browser have nothing show up. The console had an error like:

Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING

Redis is working well, I tested the port is good.

Do you have any idea?

mikelaowang commented 1 year ago

It is because your network speed is too low to load the webui js, well the Server blocked your request。 Look at the code ‘cmd/asynqmon/main.go’ at line 179 , change the timeout num
Then Build a docker image yourself

mikelaowang commented 1 year ago

I run both docker and [asynqmon_v0.7.1_linux_amd64.tar.gz] file in CentOS Server, they all have some message like

Asynq Monitoring WebUI server is listening on port 8080
2023/02/20 12:25:48 http: superfluous response.WriteHeader call from github.com/hibiken/asynqmon.(*uiAssetsHandler).ServeHTTP (static.go:46)
2023/02/20 12:26:05 http: superfluous response.WriteHeader call from github.com/hibiken/asynqmon.(*uiAssetsHandler).ServeHTTP (static.go:46)
2023/02/20 12:26:06 http: superfluous response.WriteHeader call from github.com/hibiken/asynqmon.(*uiAssetsHandler).ServeHTTP (static.go:46)

and the web in browser have nothing show up. The console had an error like:

Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING

Redis is working well, I tested the port is good.

Do you have any idea?

!!!