hammond icon indicating copy to clipboard operation
hammond copied to clipboard

Quick entry error 500

Open janleskovec opened this issue 1 year ago • 5 comments

Please complete the following information

  • Installation Type: [Docker]
  • Have you tried using the latest docker image / code base [yes]

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/[email protected]/context.go:165 (0x9b20f9)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x9b20e0)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x9ea0ab)
/api/main.go:68 (0x9ea08d)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x9b20f9)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x9b20e0)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x9b11d3)
/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0x9b1192)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x9a7989)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 (0x9a796f)
/go/pkg/mod/github.com/gin-gonic/[email protected]/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

janleskovec avatar Aug 30 '22 12:08 janleskovec

I'm getting this too.

Johnson90512 avatar Nov 16 '22 02:11 Johnson90512

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

MrPresident2 avatar Dec 29 '22 02:12 MrPresident2

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.

slimshizn avatar Dec 29 '22 06:12 slimshizn

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.

oskarslusitis avatar Feb 05 '23 19:02 oskarslusitis

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

Thank you.

vel-crow avatar Jun 04 '23 01:06 vel-crow