Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

TypeError: Object s���h½�▒▒^�# has no method 'charCodeAt' #12

Open
omoss opened this Issue · 1 comment

1 participant

@omoss

I get the following error while trying to run test.js in a blank project using Node v0.10.25:

/home/user/oscarTest/node_modules/oscar/oscar.js:2676
          hash[i] = oldhash.charCodeAt(i);
                            ^
TypeError: Object s���h½�▒▒^�# has no method 'charCodeAt'
    at OscarConnection._login (/home/user/oscarTest/node_modules/oscar/oscar.js:2676:29)
    at /home/user/oscarTest/node_modules/oscar/oscar.js:2653:62
    at process._tickCallback (node.js:415:13)

username and password have been changed in test.js to valid values.

@omoss

I applied the changes from the latest commit d98acf8 manually and it kinda works again.

it will connect and receive messages, but the sendIM function fails due to _createFLAP:

TypeError: Cannot read property 'seqNum' of undefined
    at OscarConnection._createFLAP (/home/user/oscarTest/node_modules/oscar/oscar.js:2941:35)
    at OscarConnection.sendIM (/home/user/oscarTest/node_modules/oscar/oscar.js:168:19)

The _createFlap function appears to be receiving an undefined conn parameter when called from sendIM on line 168.

sendIM is sending self._state.connections.main as the conn parameter, and self._state.connections.main appears to be undefined after login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.