stevenleeg/gobb

Investigate (non-fatal) error source

Closed this issue · 3 comments

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).

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//issues/16
.

Imgur

Another example of it occurring

Fixed by the wonderful @clehner (via 7fa5f9a) and also 34f427c.