Fork me on GitHub
#beginners
<
2017-11-21
>
chang05:11:57

I am getting an java.lang.IndexOutOfBoundsException, Does anybody know a debugging trick to know what's going on? https://github.com/mohamedhayibor/web-traffic-generator/blob/master/src/web_traffic_generator/core.clj#L45

noisesmith05:11:51

@mohamedhayibor I'd expect this line to throw that error if you hit a page with no links on it (or even a 404 or whatever) https://github.com/mohamedhayibor/web-traffic-generator/blob/master/src/web_traffic_generator/core.clj#L18 (fixed link)

noisesmith05:11:46

@mohamedhayibor but really your error should come with a stack trace that shows where the error happened, if you don't see one but are in the repl, (pst) will show the stack trace

chang05:11:37

@noisesmith . Yes I guess the code crashes whenever there is a redirect or a 4**, Copied two stacktraces here: https://gist.github.com/mohamedhayibor/b1ed8e264f862a869fd36365791fd459

chang05:11:00

@noisesmith I will try to implement filters so that .png .pdf and other static files sources are ignored. Thanks a lot for the pointer.