Coder Social home page Coder Social logo

nil error about semrush HOT 4 CLOSED

foxtacles avatar foxtacles commented on September 2, 2024
nil error

from semrush.

Comments (4)

arambert avatar arambert commented on September 2, 2024

Hi, I'm sorry I have no idea. And sadly I don't have much time at the moment to look into it :(
It would be great if you could provide us with more information !

from semrush.

foxtacles avatar foxtacles commented on September 2, 2024

This is one of the stacktraces for the issue:

2013-10-22T14:50:17Z 11856 TID--9qxxb6 WARN: undefined method `map' for nil:NilClass¬
2013-10-22T14:50:17Z 11856 TID--9qxxb6 WARN: /home/robot/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/semrush-3.0.15/lib/semrush/report.rb:332:in `parse'¬
/home/robot/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/semrush-3.0.15/lib/semrush/report.rb:267:in `request'¬
/home/robot/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/semrush-3.0.15/lib/semrush/report.rb:145:in `organic'¬

Had a quick look at that line. I assume the response of semrush is empty / lacks essential data. I can't reproduce it, it just seems to happen randomly at times.

Code which triggers it:

report = Semrush::Report.domain(domain, :db => 'de')
report.organic(:limit => 2000, :offset => 0)

As said, it happens randomly and doesn't seem to be related to any of the parameters given. If it fails, you can just execute the exact same code again and it is likely to work.

We are using semrush a lot (at this point, thanks a lot for this gem, it's very useful). I guess this error roughly pops up at a rate of 0.5% or so, by looking at our logs.

from semrush.

amokan avatar amokan commented on September 2, 2024

@foxtacles i'm experiencing the same issue. It appears to be timeout or long-query related (and totally random like you mentioned). I'm going to begin looking into this.

from semrush.

arambert avatar arambert commented on September 2, 2024

This issue has been inactive for more than 2 years. I'm closing it.

from semrush.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.