Skip to content

Submission method 'jQuery.ajaxError' title is blank #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
theit8514 opened this issue Sep 23, 2015 · 2 comments
Closed

Submission method 'jQuery.ajaxError' title is blank #26

theit8514 opened this issue Sep 23, 2015 · 2 comments
Assignees
Labels

Comments

@theit8514
Copy link

When an exception is handled via jQuery.ajaxError, the title in the Exceptionless UI is blank.

jQuery.ajaxError passes the error string as the 4th argument, which is being passed to processUnhandledException which accepts Error objects. The result is that the error (e.g. "Internal Server Error") is not parsed correctly by TraceKit.

Outputs JSON data as a result:

[{"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"]}]
@niemyjski niemyjski added the bug label Sep 24, 2015
@niemyjski
Copy link
Member

Thanks for reporting this. I'm blocked on this by a second issue regarding tracekit that I need to track down. In the mean time I may comment out this code in the next minor release.

@niemyjski
Copy link
Member

This was fixed in 2.0 of the client. It won't create a message if one isn't defined in the error. But it will log it without throwing. I've added this to the examples.

@niemyjski niemyjski self-assigned this Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants