# Serializer Error When Listing All Time Users Directory

**URL:** <https://meta.discourse.org/t/serializer-error-when-listing-all-time-users-directory/50897>\
**Category:** Bug\
**Created:** [2016 年9 月 30 日 07:06 UTC](https://meta.discourse.org/t/serializer-error-when-listing-all-time-users-directory/50897 "2016-09-30T07:06:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![kstaikov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kstaikov/32/72615_2.png) [@kstaikov](https://meta.discourse.org/u/kstaikov)\
发布日期： [2016 年9 月 30 日 07:06 UTC](https://meta.discourse.org/t/serializer-error-when-listing-all-time-users-directory/50897/1 "2016-09-30T07:06:44Z")

</div>

/directory\_items?period=all&order=likes\_received returns a 500.

On the UI, the spinner just spins forever if I have selected all time, otherwise the other options (weekly, monthly, etc.) load OK. However, they show a user that is blank that is probably a test user I deleted after making a post:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/4/24965d2a1192d7d06c13ad4070db13842e0650ce.png)

The logs show a serializer error:

```
NoMethodError (undefined method `time_read' for nil:NilClass) /var/www/discourse/app/serializers/directory_item_serializer.rb:14:in `time_read'

```

---

_[View the full topic](https://meta.discourse.org/t/serializer-error-when-listing-all-time-users-directory/50897)._
