Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Upload Files #128

Open
vel-crow opened this issue Jun 4, 2023 · 2 comments
Open

Cannot Upload Files #128

vel-crow opened this issue Jun 4, 2023 · 2 comments

Comments

@vel-crow
Copy link

vel-crow commented Jun 4, 2023

Using an updated version of debian, docker, and hammond - fresh install - I cannot upload files for quick entry.
Firewals on debian are disabled, no routing rules between my client and the Hamond server.

I can select the file to upload, I receive this alert at the bottom of the screen:

image

The following entry is generated when i run sudo docker logs hammond:

2023/06/04 01:29:14 [Recovery] 2023/06/04 - 01:29:14 panic recovered:
interface conversion: error is url.EscapeError, not validator.ValidationErrors
/usr/local/go/src/runtime/iface.go:261 (0x1f817)
/usr/local/go/src/runtime/iface.go:271 (0x1f784)
/api/common/utils.go:61 (0x4e3973)
/api/controllers/files.go:30 (0x50239b)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x4e1cdb)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x4e1cb8)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x511e13)
/api/main.go:68 (0x511dec)
[GIN] 2023/06/04 - 01:29:14 | 500 | 49.661054ms | 192.168.86.25 | POST "/api/quickEntries"
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x4e1cdb)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 (0x4e1cb8)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x4e10db)
/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0x4e10b8)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 (0x4d9063)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 (0x4d9040)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 (0x4d8bef)
/usr/local/go/src/net/http/server.go:2887 (0x262203)
/usr/local/go/src/net/http/server.go:1952 (0x25e4a3)
/usr/local/go/src/runtime/asm_arm.s:841 (0x7e653)

Given that iptables and ufw are not implemented, and this Debian install lacks any other firewall, and my subnet is explicitly allowing communication, and all other features work - i believe this may be a bug.

I thank you for your dedication to this platform, and hope for a resolution.

@ThisIsQasim
Copy link

Running into the same error

Error Trace
[GIN] 2023/07/10 - 14:23:52 | 500 |   40.631255ms |       10.0.0.33 | POST     "/api/quickEntries"


2023/07/10 14:23:52 [Recovery] 2023/07/10 - 14:23:52 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)

@ThisIsQasim
Copy link

I see that this is a duplicate of #104 and has been around for sometime. @AlfHou's fork has the fix though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants