These are chat archives for exceptionless/Discuss

23rd
Sep 2015
theit8514
@theit8514
Sep 23 2015 21:02
Is there a way to exclude certain submission methods for the JavaScript client? I'm using the WebApi nuget on the Api side so I get detailed exceptions from that, but the JQuery.ajaxError exceptions don't have any message so they just appear as blank exceptions.
Blake Niemyjski
@niemyjski
Sep 23 2015 21:07
can you send me a link to one of the ones you are seeing a blank exception
theit8514
@theit8514
Sep 23 2015 21:09
It's on self-hosted. In the Exception tab, I get: Occurred On Sep 23, 2015 4:12:32 PM ( an hour ago )
Error Type Unknown
Message
Submission Method JQuery.ajaxError
Blake Niemyjski
@niemyjski
Sep 23 2015 21:16
hmm
I’ve had another report of this and I’ve been trying to track it down
I don’t know if it’s the client or server causing this.
are you able to reproduce it?
theit8514
@theit8514
Sep 23 2015 21:17
Working on turning on server side trace before I try to repro.
theit8514
@theit8514
Sep 23 2015 21:28
I have the event json file, but not sure how to decode it. Also have the relevant lines from the trace log.
So a output from Exceptionless on the server side shows: 2015-09-23 17:25:06.5813|TRACE|EventNotificationsJob|Loaded stack: title=is not a valid value for Int32.
But the javascript that same title= statement is blank. 2015-09-23 17:25:13.7373|TRACE|EventNotificationsJob|Loaded stack: title=
Blake Niemyjski
@niemyjski
Sep 23 2015 21:31
/if you repost the raw json to the api does it reproduce this issue?
theit8514
@theit8514
Sep 23 2015 21:31
Uh, one second.
Frank Ebersoll
@frankebersoll
Sep 23 2015 21:32
Hey there :)
Blake Niemyjski
@niemyjski
Sep 23 2015 21:32
hey
:)
Frank Ebersoll
@frankebersoll
Sep 23 2015 21:33
I just forked exceptionless.javascript to fix some things regarding unhandled exceptions in Node
When did you try exception handling in node lastly?
I mean... did this ever work? :)
Blake Niemyjski
@niemyjski
Sep 23 2015 21:34
last release
Frank Ebersoll
@frankebersoll
Sep 23 2015 21:34
Maybe they changed some things in Node recently:
Blake Niemyjski
@niemyjski
Sep 23 2015 21:34
@frankebersoll we don’t use node, but I created a node sample app and triggered a few exceptions and they came in
Frank Ebersoll
@frankebersoll
Sep 23 2015 21:35
"UNCAUGHT_EXCEPTION" event is now "uncaughtException"
Blake Niemyjski
@niemyjski
Sep 23 2015 21:35
ahh
Frank Ebersoll
@frankebersoll
Sep 23 2015 21:35
same for "BEFORE_EXIT"
Blake Niemyjski
@niemyjski
Sep 23 2015 21:35
wonder if we need to do anything for legacy eversions
are you running 4.x?
node 4.x
Frank Ebersoll
@frankebersoll
Sep 23 2015 21:36
0.12.4
Blake Niemyjski
@niemyjski
Sep 23 2015 21:36
hmm
I don’t remember what version I tried it on
but it was 12.x
I just did a brew update the other day and I’m on 12.7
if you want to do a pull request I’ll accept it, just sign our cla
Frank Ebersoll
@frankebersoll
Sep 23 2015 21:37
okay... hm.
where is the cla?
Blake Niemyjski
@niemyjski
Sep 23 2015 21:37
also, if you have a link talking about those event name changes that would be greatly appreciate
Frank Ebersoll
@frankebersoll
Sep 23 2015 21:37
i'll do that
@theit8514, please let me know what you find
@frankebersoll, @theit8514 I’m going to be heading out here in a bit for dinner and the gym. If I don’t respond, just leave a message in here and I’ll get back to you.
theit8514
@theit8514
Sep 23 2015 21:50
I had to step away for a call. I attempted to post the json data using I'm Only Resting but I think I'm doing it wrong because it shows up as a log message.
Ok, yes, I have the json correctly uploading now. It still shows title= with nothing after it.
Blake Niemyjski
@niemyjski
Sep 23 2015 22:25
can you email that to me or upload it some place
theit8514
@theit8514
Sep 23 2015 22:30
So one thing I'm noticing is that the one coming from the application has a @error.message: "@error":{"message":"is not a valid value for Int32.","type":"System.Exception"
The one from the Javascript just has an empty stack trace: "@error":{"stack_trace":[]}
theit8514
@theit8514
Sep 23 2015 22:41
TraceKit.computeStackTrace(exception, 25); is returning a stack with incomplete=true. This is where the empty message comes from.
Probably because "exception" is literally just a string: "Internal Server Error"
Blake Niemyjski
@niemyjski
Sep 23 2015 22:46
hmm
can you forward that my way
via a private gist or send it in a message via gitter
theit8514
@theit8514
Sep 23 2015 22:49
The jQuery.ajaxError 4th parameter is a string value, not an exception, and it's getting passed to createUnhandledException. It either needs to be wrapped in a new exception or something like that.
yeah you are right
hmm
so
hmm
Blake Niemyjski
@niemyjski
Sep 23 2015 23:01
so
lol dang it
can you paste the whole raw json so I can take a look
I think we may be able to parse it
wonder why I thought it was an error object
theit8514
@theit8514
Sep 23 2015 23:03
[{"date":"2015-09-23T21:25:05.685Z","type":"error","source":"api/Some/ApiCall?id=10","data":{"status":500,"response":"{\"Message\":\"An error has occurred.\"}","@error":{"stack_trace":[]},"@request":{"user_agent":"Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0","is_secure":true,"host":"www.example.com","port":80,"path":"/","cookies":{"Cookie":""},"query_string":null,"referrer":"https://www.example.com"},"@submission_method":"JQuery.ajaxError"},"tags":["Example","JavaScript"]}]
Blake Niemyjski
@niemyjski
Sep 23 2015 23:08
so currently looks like that’s not working at all
because we aren’t parsing the ajax error string into a working model which I thought TraceKit handled for us
I need to add a test for that..
for now, can you log an issue for this.
theit8514
@theit8514
Sep 23 2015 23:08
Sure.
Blake Niemyjski
@niemyjski
Sep 23 2015 23:08
With the sample json
theit8514
@theit8514
Sep 23 2015 23:09
to Javascript project?
Blake Niemyjski
@niemyjski
Sep 23 2015 23:09
I think maybe the solution would be to wrap the jquery methods but that kind of stinks
yeah
If the other node fix comes in
I may just comment that out and do a quick short release
theit8514
@theit8514
Sep 23 2015 23:17
Ok, I'm out for the night. Have a good one.
Blake Niemyjski
@niemyjski
Sep 23 2015 23:18
good night
thanks for letting us know about that issue