Panic "no route to host" #17
Owner
```
May 18 13:28:42 drpork chrobroprint[571527]: Post "http://brn30055cb5e3ae.local:631/ipp/print": dial tcp 192.168.0.191:631: connect: no route to hostPost "http:>
May 18 13:28:42 drpork chrobroprint[571527]: goroutine 55 [running]:
May 18 13:28:42 drpork chrobroprint[571527]: net/http.(*conn).serve.func1(0xc000105220)
May 18 13:28:42 drpork chrobroprint[571527]: /usr/local/go/src/net/http/server.go:1824 +0x153
May 18 13:28:42 drpork chrobroprint[571527]: panic(0x6ed7a0, 0x938150)
May 18 13:28:42 drpork chrobroprint[571527]: /usr/local/go/src/runtime/panic.go:971 +0x499
May 18 13:28:42 drpork chrobroprint[571527]: main.handleGetJobs(0xc0000a5830, 0x7fe20000000b, 0x74a38b)
May 18 13:28:42 drpork chrobroprint[571527]: /home/henrik/work/ippserver/proxy/handlegetjobs.go:33 +0x45a
May 18 13:28:42 drpork chrobroprint[571527]: main.handle(0x7ae2e0, 0xc0000e20e0, 0xc0000dc500)
May 18 13:28:42 drpork chrobroprint[571527]: /home/henrik/work/ippserver/proxy/main.go:64 +0x390
May 18 13:28:42 drpork chrobroprint[571527]: net/http.HandlerFunc.ServeHTTP(0x75eac0, 0x7ae2e0, 0xc0000e20e0, 0xc0000dc500)
May 18 13:28:42 drpork chrobroprint[571527]: /usr/local/go/src/net/http/server.go:2069 +0x44
May 18 13:28:42 drpork chrobroprint[571527]: net/http.(*ServeMux).ServeHTTP(0x945260, 0x7ae2e0, 0xc0000e20e0, 0xc0000dc500)
May 18 13:28:42 drpork chrobroprint[571527]: /usr/local/go/src/net/http/server.go:2448 +0x1ad
May 18 13:28:42 drpork chrobroprint[571527]: net/http.serverHandler.ServeHTTP(0xc00014a000, 0x7ae2e0, 0xc0000e20e0, 0xc0000dc500)
May 18 13:28:42 drpork chrobroprint[571527]: /usr/local/go/src/net/http/server.go:2887 +0xa3
May 18 13:28:42 drpork chrobroprint[571527]: net/http.(*conn).serve(0xc000105220, 0x7ae820, 0xc000057080)
May 18 13:28:42 drpork chrobroprint[571527]: /usr/local/go/src/net/http/server.go:1952 +0x8cd
May 18 13:28:42 drpork chrobroprint[571527]: created by net/http.(*Server).Serve
May 18 13:28:42 drpork chrobroprint[571527]: /usr/local/go/src/net/http/server.go:3013 +0x39b
May 18 13:28:42 drpork chrobroprint[571527]: 2021/05/18 13:28:42 http: panic serving 192.168.0.108:37148: runtime error: invalid memory address or nil pointer d>
May 18 13:28:42 drpork chrobroprint[571527]: goroutine 52 [running]:
```
Avoid panic if printer is off or unreachable for some reason.
Avoid panic if printer is off or unreachable for some reason. #18
Avoid panic if printer is off or unreachable for some reason.
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?