# Aborted request to mini-profiler-resources/results

**URL:** <https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93>\
**Category:** Ruby\
**Created:** [July 26, 2012, 10:51pm UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93 "2012-07-26T22:51:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gonzih](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/gonzih/32/405_2.png) [@Gonzih](https://community.miniprofiler.com/u/Gonzih)\
**Post date:** [July 26, 2012, 10:51pm UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/1 "2012-07-26T22:51:41Z")

</div>

Hi, I have issue with miniprofiler. Firebug console shows that requests to mini-profiler-resources/results are aborted.

My rails version is 3.2.1 and my ruby version is 1.9.3p125.

**Error from log:**

```
!! Unexpected error while processing request: undefined method `has_key?' for nil:NilClass

```

**Screenshots:**

![alt text](https://dl.dropbox.com/u/4109351/tmp/rack-mini-profiler-firebug-1.png)

![alt text](https://sea2.discourse-cdn.com/flex016/uploads/miniprofiler/8/57fd91a549a3a830.png)

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [July 30, 2012, 2:22am UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/2 "2012-07-30T02:22:55Z")

</div>

any way you can get me a full stack trace? sometimes you need thin or mongrel if passenger is aborting stuff.

---

<div class="post-metadata">

**Author:** ![Gonzih](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/gonzih/32/405_2.png) [@Gonzih](https://community.miniprofiler.com/u/Gonzih)\
**Post date:** [July 31, 2012, 11:52pm UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/3 "2012-07-31T23:52:49Z")

</div>

Here is backtrace from mongrel:

```
2012-08-01 12:51:13 +0300: Read error: #<NoMethodError: undefined method `has_key?' for nil:NilClass>
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/yajl-ruby-1.1.0/lib/yajl/json_gem/encoding.rb:23:in `generate'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/rack-mini-profiler-0.1.9/lib/mini_profiler/timer_struct.rb:25:in `to_json'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/yajl-ruby-1.1.0/lib/yajl.rb:72:in `encode'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/yajl-ruby-1.1.0/lib/yajl.rb:72:in `encode'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/yajl-ruby-1.1.0/lib/yajl/json_gem/encoding.rb:27:in `generate'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/rack-mini-profiler-0.1.9/lib/mini_profiler/page_timer_struct.rb:48:in `to_json'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/rack-mini-profiler-0.1.9/lib/mini_profiler/profiler.rb:127:in `serve_results'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/rack-mini-profiler-0.1.9/lib/mini_profiler/profiler.rb:149:in `serve_html'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/rack-mini-profiler-0.1.9/lib/mini_profiler/profiler.rb:201:in `call'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:479:in `call'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:220:in `call'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in `call'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/log_tailer.rb:14:in `call'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler/mongrel.rb:77:in `process'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:165:in `block in process_client'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:164:in `each'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:164:in `process_client'
/home/gnzh/work/appoint/vendor/bundle/ruby/1.9.1/gems/mongrel-1.2.0.pre2/lib/mongrel.rb:291:in `block (2 levels) in run'
```

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [August 1, 2012, 3:00am UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/4 "2012-08-01T03:00:01Z")

</div>

aha … I never tested with yajl (the super fast json serializer) will add a few tests for that. could be an incompatibility

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [August 1, 2012, 3:01am UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/5 "2012-08-01T03:01:16Z")

</div>

aha … I never tested with yajl (the super fast json serializer) will add a few tests for that. could be an incompatibility

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [August 6, 2012, 9:25pm UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/6 "2012-08-06T21:25:53Z")

</div>

Can you test this with the latest release, it should be fixed

---

<div class="post-metadata">

**Author:** ![Gonzih](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/gonzih/32/405_2.png) [@Gonzih](https://community.miniprofiler.com/u/Gonzih)\
**Post date:** [August 6, 2012, 11:34pm UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/7 "2012-08-06T23:34:02Z")

</div>

Thanks, it works now!

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [July 29, 2012, 10:17pm UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/8 "2012-07-29T22:17:07Z")

</div>

can you test on latest?

---

<div class="post-metadata">

**Author:** ![Gonzih](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/gonzih/32/405_2.png) [@Gonzih](https://community.miniprofiler.com/u/Gonzih)\
**Post date:** [July 30, 2012, 1:26am UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/9 "2012-07-30T01:26:22Z")

</div>

@sam

╰─➤ bundle show rack-mini-profiler  
vendor/bundle/ruby/1.9.1/gems/rack-mini-profiler-0.1.9

same issue, log:

!! Unexpected error while processing request: undefined method `has\_key?’ for nil:NilClass

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [December 2, 2013, 11:41pm UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/10 "2013-12-02T23:41:40Z")

</div>

Is this still the case in latest?

---

<div class="post-metadata">

**Author:** ![Gonzih](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/gonzih/32/405_2.png) [@Gonzih](https://community.miniprofiler.com/u/Gonzih)\
**Post date:** [December 3, 2013, 12:31pm UTC](https://community.miniprofiler.com/t/aborted-request-to-mini-profiler-resources-results/93/11 "2013-12-03T12:31:04Z")

</div>

I don’t have any appropriate environment to test that. Sorry.
