Cannot call method 'indexOf' of undefined
Marius
Posted on
May 04 2014
I get a lot of error in the raygun.min file. Or at least it looks like it. Have you seen this before?
Cannot call method 'indexOf' of undefined at r line 4, column 9319 (http://admin.salgsskjermer.no/Scripts/raygun.min.js:4) at HTMLDocument.a line 4, column 9558 (http://admin.salgsskjermer.no/Scripts/raygun.min.js:4) at HTMLDocument.e line 4, column 245 (http://admin.salgsskjermer.no/Scripts/raygun.min.js:4) at HTMLDocument.e line 4, column 245 (http://admin.salgsskjermer.no/Scripts/raygun.min.js:4) at HTMLDocument.i.event.dispatch line 1, column 125081 (http://admin.salgsskjermer.no/bundles/liveslide/js?v=N5qGjIt2pG3S7GX-32c7og0qc3A3SFHDfuE099X9x41:1) at HTMLDocument.v.handle line 1, column 121823 (http://admin.salgsskjermer.no/bundles/liveslide/js?v=N5qGjIt2pG3S7GX-32c7og0qc3A3SFHDfuE099X9x41:1) at Object.i.event.trigger line 1, column 124170 (http://admin.salgsskjermer.no/bundles/liveslide/js?v=N5qGjIt2pG3S7GX-32c7og0qc3A3SFHDfuE099X9x41:1) at w line 1, column 167656 (http://admin.salgsskjermer.no/bundles/liveslide/js?v=N5qGjIt2pG3S7GX-32c7og0qc3A3SFHDfuE099X9x41:1) at XMLHttpRequest.u line 1, column 173172 (http://admin.salgsskjermer.no/bundles/liveslide/js?v=N5qGjIt2pG3S_7GX-32c7og0qc3A3SFHDfuE099X9x41:1)
Callum
Posted on
May 05 2014
Thanks for reporting this one - it looks like it results from a recent fix that now allows a state to be reached in that code path that couldn't occur before.
There is a candidate fix that should resolve your above issue for good available here: https://raw.githubusercontent.com/MindscapeHQ/raygun4js/ajax-undefined-url-fix/dist/raygun.min.js. If you could download it, integrate it in your code and confirm that the above error doesn't happen any more I will get it merged and deployed as a new version.
Again thanks for the report; we hope Raygun proves useful for you and let us know if there's anything else we can help with.
Marius
Posted on
May 05 2014
I will add it today, but i cant publish during the day because of customers, you will hear from me tomorrow, thanks for fast reply.
John-Daniel Trask
Raygun
Posted on
May 08 2014
Just letting you know that this has tested OK so it is now released as version v1.8.3. This is available from the GitHub repo and from Bower - we're holding off on a NuGet release for this one as there's an additional release coming shortly.
Regards,
Callum Gavin
Mindscape Limited
Marius
Posted on
May 10 2014
Thanks, it worked for me as well.