question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NS_ERROR_UNEXPECTED: NS_ERROR_UNEXPECTED:

See original GitHub issue

Error

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:closed
  • Created 8 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
davidhariricommented, Feb 1, 2017

Adding to @amackera comment:

screen shot 2017-02-01 at 9 54 00 am
0reactions
stale[bot]commented, Sep 22, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found