akhilrex / hammond

Self hosted vehicle and expense management system. Like Clarkson, but better
GNU Affero General Public License v3.0
562 stars 52 forks source link

Quick entry error 500 #104

Open janleskovec opened 2 years ago

janleskovec commented 2 years ago

Please complete the following information

Describe the bug The quick entry returns an error 500, when uploading a photo.

To Reproduce Steps to reproduce the behavior:

  1. Go to the homescreen
  2. Select Photo
  3. Upload File
  4. See error

Expected behavior A quick entry gets added

Logs

[GIN] 2022/08/30 - 12:52:25 | 500 |   12.813694ms |       10.0.1.27 | POST     "/api/quickEntries"
2022/08/30 12:52:25 [Recovery] 2022/08/30 - 12:52:25 panic recovered:
interface conversion: error is url.EscapeError, not validator.ValidationErrors
/usr/local/go/src/runtime/iface.go:261 (0x412d2b)
/usr/local/go/src/runtime/iface.go:271 (0x412c8f)
/api/common/utils.go:61 (0x9b413b)
/api/controllers/files.go:30 (0x9d7b14)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9b20f9)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/recovery.go:99 (0x9b20e0)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9ea0ab)
/api/main.go:68 (0x9ea08d)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9b20f9)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/recovery.go:99 (0x9b20e0)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9b11d3)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/logger.go:241 (0x9b1192)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/context.go:165 (0x9a7989)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/gin.go:489 (0x9a796f)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.1/gin.go:445 (0x9a745b)
/usr/local/go/src/net/http/server.go:2887 (0x6b5b22)
/usr/local/go/src/net/http/server.go:1952 (0x6b0f4c)
/usr/local/go/src/runtime/asm_amd64.s:1371 (0x473e60)

Additional context This is a fresh installation on docker with the following compose file:

version: '2.1'
services:
  hammond:
    image: akhilrex/hammond
    container_name: hammond
    volumes:
      - /data/hammond/config:/config
      - /data/hammond/data:/assets
    ports:
      - 8083:3000
    restart: unless-stopped
Johnson90512 commented 2 years ago

I'm getting this too.

MrPresident2 commented 1 year ago

Also have the same problem while uploading a photo, any news about this?

slimshizn commented 1 year ago

There's a fix in another release, it didn't make it in the most recent release. Not sure when or if it'll go live.

oskarslusitis commented 1 year ago

Hey, Sorry if I've missed the answer, has this been fixed? Just set up the Hammond on docker for the first time and this bug is still present.

vel-crow commented 1 year ago

I have opened a new case, as this appears to be an issue in the latest docker image.

Thank you.