[GIN-debug] Listening and serving HTTP on :8081
2022/04/30 17:08:53 {"ID":0,"CreatedAt":"0001-01-01T00:00:00Z","UpdatedAt":"0001-01-01T00:00:00Z","DeletedAt":null,"id":0,"created_at":"0001-01-01T00:00:00Z","updated_at":"0001-01-01T00:00:00Z","title":"Home AS6510T-60C1","ip":"192.168.0.111","port":222,"user":"root","p5wd":"xxxxxx","key":"\n-----BEGIN RSA PRIVATE KEY-----\nMIIxxxxx........\n-----END RSA PRIVATE KEY-----","tags":"ssh"}
2022/04/30 17:08:53 [Recovery] 2022/04/30 - 17:08:53 panic recovered:
POST /api/v1/rsc HTTP/1.1
Host: 127.0.0.1:8081
Connection: close
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close
Content-Length: 1822
Content-Type: application/json
Origin: http://localhost:8082
Referer: http://localhost:8082/sshrmt
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15
X-Forwarded-For: 127.0.0.1
X-Forwarded-Host: localhost:8082
X-Forwarded-Port: 8082
X-Forwarded-Proto: http
reflect: reflect.Value.Set using unaddressable value
/usr/local/Cellar/go/1.18.1/libexec/src/reflect/value.go:262 (0x4093dc4)
flag.mustBeAssignableSlow: panic("reflect: " + methodNameSkip() + " using unaddressable value")
/usr/local/Cellar/go/1.18.1/libexec/src/reflect/value.go:249 (0x409c009)
flag.mustBeAssignable: f.mustBeAssignableSlow()
/usr/local/Cellar/go/1.18.1/libexec/src/reflect/value.go:2082 (0x409bfd5)
Value.Set: v.mustBeAssignable()
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/schema/field.go:565 (0x44b7aba)
(*Field).setupValuerAndSetter.func6: field.ReflectValueOf(ctx, value).Set(reflectV.Elem())
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/schema/field.go:715 (0x44b6439)
(*Field).setupValuerAndSetter.func9: return fallbackSetter(ctx, value, v, field.Set)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/schema/field.go:568 (0x44b7a2f)
(*Field).setupValuerAndSetter.func6: err = setter(ctx, value, reflectV.Elem().Interface())
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/schema/field.go:715 (0x44b6439)
(*Field).setupValuerAndSetter.func9: return fallbackSetter(ctx, value, v, field.Set)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/scan.go:72 (0x44e3d88)
(*DB).scanIntoStruct: db.AddError(field.Set(db.Statement.Context, reflectValue, values[idx]))
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/scan.go:276 (0x44e4dca)
Scan: db.scanIntoStruct(rows, reflectValue, values, fields, joinFields)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/callbacks/query.go:26 (0x4512964)
Query: gorm.Scan(rows, db, 0)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/callbacks.go:130 (0x44d2cd2)
(*processor).Execute: f(db)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/finisher_api.go:129 (0x44d9938)
(*DB).First: return tx.callbacks.Query().Execute(tx)
/Users/51pwn/MyWork/goSqlite_gorm/main.go:173 (0x454083c)
SaveRsCc: rst := dbCC.First(rsvOld, "ip = ? and port = ?", rsv.Ip, rsv.Port)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x447d4a1)
(*Context).Next: c.handlers[c.index](c)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/recovery.go:99 (0x447d48c)
CustomRecoveryWithWriter.func1: c.Next()
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x447d4a1)
(*Context).Next: c.handlers[c.index](c)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/recovery.go:99 (0x447d48c)
CustomRecoveryWithWriter.func1: c.Next()
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x447c5c6)
(*Context).Next: c.handlers[c.index](c)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/logger.go:241 (0x447c5a9)
LoggerWithConfig.func1: c.Next()
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x447b690)
(*Context).Next: c.handlers[c.index](c)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/gin.go:555 (0x447b2f8)
(*Engine).handleHTTPRequest: c.Next()
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/gin.go:511 (0x447ae31)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/Cellar/go/1.18.1/libexec/src/net/http/server.go:2916 (0x42be95a)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/Cellar/go/1.18.1/libexec/src/net/http/server.go:1966 (0x42b9956)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/Cellar/go/1.18.1/libexec/src/runtime/asm_amd64.s:1571 (0x40660c0)
goexit: BYTE $0x90 // NOP
[GIN-debug] Listening and serving HTTP on :8081
2022/04/30 17:08:53 {"ID":0,"CreatedAt":"0001-01-01T00:00:00Z","UpdatedAt":"0001-01-01T00:00:00Z","DeletedAt":null,"id":0,"created_at":"0001-01-01T00:00:00Z","updated_at":"0001-01-01T00:00:00Z","title":"Home AS6510T-60C1","ip":"192.168.0.111","port":222,"user":"root","p5wd":"Miracle***888","key":"\n-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEArCuzrBDai8Lh+qU6wgYjVjSNAcmWVEWlfk0updj+nMVmaUQI\nFa7sg5Pl0OaWPcSR02Xxe+SE/npFlwOYQXtnjvI/nwELimh4L5VfH06ePMDEtC0Y\npX67JTrMr/A7Kw7NmUmomq2o+wcBAWpWrpnM6gTNFKHpQmuzr1iQ6n8mCvIoU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z+OS0CgYAG7OltGJDP6UJ7XieWOdrwoK7Aeq9mIOIsUH+v\ns9w0Hl0s1fWUkI4clMoV6Qpwrox9MqNYB3hVqdvawAuHB33HvyFqDbFIhl4yyORr\nm5GMKvoGjuX7DoI1JnxJoOwbmCo0+oUMV9Bb4ZVZ16i5E9DLa2HoSj8h+/tj7y1Y\nDPma0QKBgHrxsefTQRnJInmlPsQ9gskxAdjGiyHmxSydPkSxNur+X1MK5e4l9Oir\nCVBJlPmg5HEiNihdfHadfOL2BpKMGmFt+9kZnmNpJQZuDKdpmja7L8+VUrv+9N2V\neN8BCuAXhpS6cZ54ogo8r/uPN1zSTjEBbVueRArFaFelILMh8W1Z\n-----END RSA PRIVATE KEY-----","tags":"ssh"}
2022/04/30 17:08:53 [Recovery] 2022/04/30 - 17:08:53 panic recovered:
POST /api/v1/rsc HTTP/1.1
Host: 127.0.0.1:8081
Connection: close
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close
Content-Length: 1822
Content-Type: application/json
Origin: http://localhost:8082
Referer: http://localhost:8082/sshrmt
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15
X-Forwarded-For: 127.0.0.1
X-Forwarded-Host: localhost:8082
X-Forwarded-Port: 8082
X-Forwarded-Proto: http
reflect: reflect.Value.Set using unaddressable value
/usr/local/Cellar/go/1.18.1/libexec/src/reflect/value.go:262 (0x4093dc4)
flag.mustBeAssignableSlow: panic("reflect: " + methodNameSkip() + " using unaddressable value")
/usr/local/Cellar/go/1.18.1/libexec/src/reflect/value.go:249 (0x409c009)
flag.mustBeAssignable: f.mustBeAssignableSlow()
/usr/local/Cellar/go/1.18.1/libexec/src/reflect/value.go:2082 (0x409bfd5)
Value.Set: v.mustBeAssignable()
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/schema/field.go:565 (0x44b7aba)
(*Field).setupValuerAndSetter.func6: field.ReflectValueOf(ctx, value).Set(reflectV.Elem())
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/schema/field.go:715 (0x44b6439)
(*Field).setupValuerAndSetter.func9: return fallbackSetter(ctx, value, v, field.Set)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/schema/field.go:568 (0x44b7a2f)
(*Field).setupValuerAndSetter.func6: err = setter(ctx, value, reflectV.Elem().Interface())
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/schema/field.go:715 (0x44b6439)
(*Field).setupValuerAndSetter.func9: return fallbackSetter(ctx, value, v, field.Set)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/scan.go:72 (0x44e3d88)
(*DB).scanIntoStruct: db.AddError(field.Set(db.Statement.Context, reflectValue, values[idx]))
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/scan.go:276 (0x44e4dca)
Scan: db.scanIntoStruct(rows, reflectValue, values, fields, joinFields)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/callbacks/query.go:26 (0x4512964)
Query: gorm.Scan(rows, db, 0)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/callbacks.go:130 (0x44d2cd2)
(*processor).Execute: f(db)
/Users/51pwn/go/pkg/mod/gorm.io/gorm@v1.23.5/finisher_api.go:129 (0x44d9938)
(*DB).First: return tx.callbacks.Query().Execute(tx)
/Users/51pwn/MyWork/goSqlite_gorm/main.go:173 (0x454083c)
SaveRsCc: rst := dbCC.First(rsvOld, "ip = ? and port = ?", rsv.Ip, rsv.Port)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x447d4a1)
(*Context).Next: c.handlers[c.index](c)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/recovery.go:99 (0x447d48c)
CustomRecoveryWithWriter.func1: c.Next()
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x447d4a1)
(*Context).Next: c.handlers[c.index](c)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/recovery.go:99 (0x447d48c)
CustomRecoveryWithWriter.func1: c.Next()
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x447c5c6)
(*Context).Next: c.handlers[c.index](c)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/logger.go:241 (0x447c5a9)
LoggerWithConfig.func1: c.Next()
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/context.go:168 (0x447b690)
(*Context).Next: c.handlers[c.index](c)
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/gin.go:555 (0x447b2f8)
(*Engine).handleHTTPRequest: c.Next()
/Users/51pwn/go/pkg/mod/github.com/gin-gonic/gin@v1.7.7/gin.go:511 (0x447ae31)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/Cellar/go/1.18.1/libexec/src/net/http/server.go:2916 (0x42be95a)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/Cellar/go/1.18.1/libexec/src/net/http/server.go:1966 (0x42b9956)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/Cellar/go/1.18.1/libexec/src/runtime/asm_amd64.s:1571 (0x40660c0)
goexit: BYTE $0x90 // NOP
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨