# Nokogiri error

**URL:** <https://www.ruby-forum.com/t/nokogiri-error/195229>\
**Category:** Ruby\
**Created:** [September 20, 2010, 10:52am UTC](https://www.ruby-forum.com/t/nokogiri-error/195229 "2010-09-20T10:52:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senthil\_kumar\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@Senthil\_kumar\_L](https://www.ruby-forum.com/u/Senthil_kumar_L)\
**Post date:** [September 20, 2010, 10:52am UTC](https://www.ruby-forum.com/t/nokogiri-error/195229/1 "2010-09-20T10:52:23Z")

</div>

I am getting the below error when I am working with nokogiri version  
1.4.3.1  
“!! Unexpected error while processing request: undefined method  
`children’ for nil:NilClass”.  
But my app works great with the other version 1.4.1

---

<div class="post-metadata">

**Author:** ![Senthil\_kumar\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@Senthil\_kumar\_L](https://www.ruby-forum.com/u/Senthil_kumar_L)\
**Post date:** [September 20, 2010, 11:45am UTC](https://www.ruby-forum.com/t/nokogiri-error/195229/2 "2010-09-20T11:45:42Z")

</div>

Senthil kumar Loganathan wrote:

> I am getting the below error when I am working with nokogiri version  
> 1.4.3.1  
> “!! Unexpected error while processing request: undefined method  
> `children’ for nil:NilClass”.

Can you post the full error with backtrace? All I can tell from that is  
that somewhere in the code is a line like

… foo.children …

but foo is nil at that point.

> But my app works great with the other version 1.4.1

Can you make a small standalone app which replicates the problem? Or  
even better, a failing test case? That would make it much easier for the  
authors to pinpoint the problem.
