chat generating errors and are not shown on the site

My chat generate a lot of errors as can be seen in the screenshot.
how can i troubleshoot on this.?