stevenleeg / gobb

A simple and fast bulletin board written in Go.
Other
130 stars 26 forks source link

Investigate (non-fatal) error source #16

Closed stevenleeg closed 10 years ago

stevenleeg commented 10 years ago

I'm periodically seeing things like this in the log:

[error] Could not get latest post: (sql: no rows in result set)
[error] Cannot select user (sql: no rows in result set)
Something weird is going on here: parent_id: 1171, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (1171))
[error] Cannot select user (sql: no rows in result set)
Something weird is going on here: parent_id: 865, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (865))
Something weird is going on here: parent_id: 865, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (865))

Not exactly sure what could be causing them (I know where the errors are occurring, just not why).

jamesa commented 10 years ago

At least one of these errors happens when there's a thread with no replies and the board view is loaded, I think.

On Sat, Jan 11, 2014 at 11:37 AM, Steve Gattuso notifications@github.comwrote:

I'm periodically seeing things like this in the log:

[error] Could not get latest post: (sql: no rows in result set) [error] Cannot select user (sql: no rows in result set) Something weird is going on here: parent_id: 1171, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (1171)) [error] Cannot select user (sql: no rows in result set) Something weird is going on here: parent_id: 865, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (865)) Something weird is going on here: parent_id: 865, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (865))

Not exactly sure what could be causing them (I know where the errors are occurring, just not why).

— Reply to this email directly or view it on GitHubhttps://github.com/stevenleeg/gobb/issues/16 .

stevenleeg commented 10 years ago

Imgur

Another example of it occurring

stevenleeg commented 10 years ago

Fixed by the wonderful @clehner (via 7fa5f9a6b24fce04f6c39) and also 34f427c648f558b6821e25.