Advertisement
Guest User

error go

a guest
Jun 25th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. 2019/06/26 10:13:52 [Recovery] 2019/06/26 - 10:13:52 panic recovered:
  2. GET /ping HTTP/1.1
  3. Host: localhost:8080
  4. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  5. Accept-Encoding: gzip, deflate
  6. Accept-Language: en-US,en;q=0.5
  7. Cache-Control: max-age=0
  8. Connection: keep-alive
  9. Dnt: 1
  10. Upgrade-Insecure-Requests: 1
  11. User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
  12.  
  13.  
  14. runtime error: invalid memory address or nil pointer dereference
  15. /usr/local/go/src/runtime/panic.go:82 (0x442320)
  16. panicmem: panic(memoryError)
  17. /usr/local/go/src/runtime/signal_unix.go:390 (0x44214f)
  18. sigpanic: panicmem()
  19. /usr/local/go/src/html/template/template.go:95 (0x78dacd)
  20. (*Template).escape: t.nameSpace.mu.Lock()
  21. /usr/local/go/src/html/template/template.go:119 (0x78dd2e)
  22. (*Template).Execute: if err := t.escape(); err != nil {
  23. /home/yuko/go/src/github.com/gin-gonic/gin/render/html.go:84 (0x8c837f)
  24. HTML.Render: return r.Template.Execute(w, r.Data)
  25. /home/yuko/go/src/github.com/gin-gonic/gin/context.go:808 (0x8d206e)
  26. (*Context).Render: if err := r.Render(c.Writer); err != nil {
  27. /home/yuko/go/src/github.com/gin-gonic/gin/context.go:818 (0x8d2145)
  28. (*Context).HTML: c.Render(code, instance)
  29. /home/yuko/go/src/github.com/yupangestu/gin/main.go:23 (0x8e553d)
  30. main.func2: c.HTML(http.StatusOK, "templates/example.html", gin.H{
  31. /home/yuko/go/src/github.com/gin-gonic/gin/context.go:147 (0x8ce1f9)
  32. (*Context).Next: c.handlers[c.index](c)
  33. /home/yuko/go/src/github.com/gin-gonic/gin/recovery.go:83 (0x8e18b9)
  34. RecoveryWithWriter.func1: c.Next()
  35. /home/yuko/go/src/github.com/gin-gonic/gin/context.go:147 (0x8ce1f9)
  36. (*Context).Next: c.handlers[c.index](c)
  37. /home/yuko/go/src/github.com/gin-gonic/gin/logger.go:240 (0x8e0960)
  38. LoggerWithConfig.func1: c.Next()
  39. /home/yuko/go/src/github.com/gin-gonic/gin/context.go:147 (0x8ce1f9)
  40. (*Context).Next: c.handlers[c.index](c)
  41. /home/yuko/go/src/github.com/gin-gonic/gin/gin.go:391 (0x8d7df9)
  42. (*Engine).handleHTTPRequest: c.Next()
  43. /home/yuko/go/src/github.com/gin-gonic/gin/gin.go:352 (0x8d74ed)
  44. (*Engine).ServeHTTP: engine.handleHTTPRequest(c)
  45. /usr/local/go/src/net/http/server.go:2774 (0x6b2da7)
  46. serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
  47. /usr/local/go/src/net/http/server.go:1878 (0x6ae990)
  48. (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
  49. /usr/local/go/src/runtime/asm_amd64.s:1337 (0x459bc0)
  50. goexit: BYTE $0x90 // NOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement