问题描述
2020/08/22 18:32:32 [Recovery] 2020/08/22 - 18:32:32 panic recovered:
POST /get-state HTTP/1.1
Host: localhost:3000
Accept: */*
Accept-Encoding: gzip,deflate,br
Connection: keep-alive
Content-Length: 0
Postman-Token: 4e6f4dc7-9dc4-4cd4-a328-8da2bc86d43d
User-Agent: PostmanRuntime/7.26.3
interface conversion: interface {} is string,not []uint8
/usr/local/Cellar/go/1.14.6/libexec/src/runtime/iface.go:260 (0x100bd11)
panicdottypeE: panic(&TypeAssertionError{iface,have,want,""})
/Users/virtumonde/go/pkg/mod/github.com/cridenour/[email protected]/decode.go:21 (0x10fda31)
decode: ewkb,err := hex.DecodeString(string(value.([]byte)))
/Users/virtumonde/go/pkg/mod/github.com/cridenour/[email protected]/point.go:48 (0x10fde58)
(*Point).Scan: reader,err := decode(value)
/Users/virtumonde/go/pkg/mod/github.com/jackc/[email protected]/pgtype.go:590 (0x120ff39)
scanPlansqlScanner.Scan: return scanner.Scan(string(src))
/Users/virtumonde/go/pkg/mod/github.com/jackc/pgx/[email protected]/rows.go:220 (0x1627b2c)
(*connRows).Scan: err := rows.scanPlans[i].Scan(ci,fieldDescriptions[i].DataTypeOID,fieldDescriptions[i].Format,values[i],dst)
/Users/virtumonde/go/pkg/mod/github.com/jackc/pgx/[email protected]/pgxpool/rows.go:70 (0x1634cd4)
(*poolRows).Scan: err := rows.r.Scan(dest...)
/Users/virtumonde/Desktop/dev/terminus/terminus-server/db.go:49 (0x16388f3)
Database.GetPlayers: err := rows.Scan(&uuid,&coordinate)
/Users/virtumonde/Desktop/dev/terminus/terminus-server/main.go:116 (0x163b26b)
main.func4: players,err := db.GetPlayers()
/Users/virtumonde/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x15a0eba)
(*Context).Next: c.handlers[c.index](c)
/Users/virtumonde/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:83 (0x15b45bf)
RecoveryWithWriter.func1: c.Next()
/Users/virtumonde/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x15a0eba)
(*Context).Next: c.handlers[c.index](c)
/Users/virtumonde/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 (0x15b36f0)
LoggerWithConfig.func1: c.Next()
/Users/virtumonde/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161 (0x15a0eba)
(*Context).Next: c.handlers[c.index](c)
/Users/virtumonde/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:409 (0x15aac95)
(*Engine).handleHTTPRequest: c.Next()
/Users/virtumonde/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:367 (0x15aa3ac)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/Cellar/go/1.14.6/libexec/src/net/http/server.go:2836 (0x13a2692)
serverHandler.ServeHTTP: handler.ServeHTTP(rw,req)
/usr/local/Cellar/go/1.14.6/libexec/src/net/http/server.go:1924 (0x139dffb)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w,w.req)
/usr/local/Cellar/go/1.14.6/libexec/src/runtime/asm_amd64.s:1373 (0x10640c0)
goexit: BYTE $0x90 // nop
在 18张(AmortBond) 19#amortBond.setPricingEngine(bondEngine) ---> 20个amortBond.NPV()
NPV中的C:\ Software \ Python \ Anaconda3 \ lib \ site-packages \ QuantLib \ QuantLib.py 9179 9180 def NPV(自身): -> 9181返回_QuantLib.Instrument_NPV() 9182 9183 def errorEstimate(self):
RuntimeError:时间(6.41667)超过最大曲线时间(1)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)