NS_ERROR_UNEXPECTED: NS_ERROR_UNEXPECTED:
See original GitHub issueError
NS_ERROR_UNEXPECTED: NS_ERROR_UNEXPECTED:
Location
Pusher.js line number 2188
Seems in this function:
/** Sends data over the open connection.
*
* @param {String} data
* @return {Boolean} true only when in the "open" state
*/
prototype.send = function(data) {
var self = this;
if (self.state === "open") {
// Workaround for MobileSafari bug (see https://gist.github.com/2052006)
Pusher.Util.defer(function() {
if (self.socket) {
self.socket.send(data); // (Line number 2188)
}
});
return true;
} else {
return false;
}
};
Exact line is: self.socket.send(data);
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
objective c - NSException and NSError custom exception/error
NSError is designed for non-fatal, recoverable errors. The problems that are designed to be captured by an NSError are often user errors (or ......
Read more >NSError - NSHipster
NSError is the unsung hero of the Foundation framework. Passed gallantly in and out of perilous method calls, it is the messenger by...
Read more >Printing an NSError casted to Error results in a crash thrown ...
My crash has nothing related to printing Swift.Error . It was an unexpected nil (from ObjC) filled in an Swift.Error 's place.
Read more >Presenting unanticipated errors to users - Cocoa with Love
Using an error that embeds an NSErrorRecoveryAttempting implementation for diagnostic purposes. Combined with some wrapper functions, Swift's ...
Read more >Chapter 10. Error and exception handling - Objective-C ...
NSError is the preferred and advisable way to deal with expected errors (like an unreachable host). Exceptions are meant to report and handle...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Adding to @amackera comment:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you’d like this issue to stay open please leave a comment indicating how this issue is affecting you. Thankyou.