Skip to content

default_listing BrowseTemplate causing 500 response #55

@BrianFanning

Description

@BrianFanning

This was mentioned in issue #50, but the issue was closed by the reporter. I'm having the same issue. If you are using the default BrowseTemplate, a 500 error is returned to the user. Error logs in Caddy:

{
	"level": "error",
	"ts": 1643739892.6739354,
	"logger": "http.log.error",
	"msg": "template: default_listing:5:26: executing \"default_listing\" at <.PageObj>: can't evaluate field PageObj in type caddys3proxy.PageObj",
	"request": {
		"remote_addr": "10.113.133.2:46012",
		"proto": "HTTP/1.1",
		"method": "GET",
		"host": "s3proxy.redacted",
		"uri": "/?max=20",
		"headers": {
			"X-Request-Id": ["913cd8227b352f76365baa7c2c255f"],
			"X-Real-Ip": ["10.167.1.129"],
			"X-Forwarded-Host": ["s3proxy.redacted"],
			"User-Agent": ["curl/7.80.0"],
			"Content-Type": ["text/html"],
			"X-Forwarded-For": ["10.17.1.19"],
			"X-Forwarded-Port": ["80"],
			"X-Forwarded-Proto": ["http"],
			"X-Scheme": ["http"],
			"Accept": ["*/*"]
		}
	},
	"duration": 1.04688346,
	"status": 500,
	"err_id": "eqh8tru7r",
	"err_trace": "caddy-s3-proxy.convertToCaddyError (errors.go:118)"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions