jsErrLog icon indicating copy to clipboard operation
jsErrLog copied to clipboard

(docs) 2048 char limit applies to GET, not POST

Open alexlehm opened this issue 10 years ago • 2 comments

this is more of a nitpick than an actual issue, the limit of 2048 chars applies to GET, not to POST and the url that is requested by jserrlog is a GET

alexlehm avatar Feb 28 '14 22:02 alexlehm

And it is a little bit weard to write request queue to head tag. Though it's inconvenient to write ajax in raw js.

TimYi avatar Jun 28 '16 09:06 TimYi

@alexlehm in a latest commit, a sendError method is added. Overwrite this method to add post support to your own server. An error object is also added, use error.stack you can record the whole stack trace. // Send error to server side, default approach is jsErrLog.appendScript. jsErrLog.sendError = function(i, sn, file_loc, line_no, col_no, ui, info, msg, error) { try { jsErrLog.sendErrorInternal(i, sn, file_loc, line_no, col_no, ui, info, msg, error) } catch (e) { jsErrLog.errorHandler("sendErrorInternal", e); } }

TimYi avatar Jul 01 '16 02:07 TimYi