node-oscar icon indicating copy to clipboard operation
node-oscar copied to clipboard

getInfo doesen't work

Open sidorares opened this issue 14 years ago • 6 comments

callback is fired but info object undefined

sidorares avatar May 25 '11 07:05 sidorares

Hmm, it works for me. Are you sure you're looking at the second argument to the callback and not the first? The callbacks follow the node-style of callbacks with error first and other variables afterwards.

I did just now notice though (pretty terrible) that there is no end()/disconnect() method. I'll be adding that shortly.

mscdex avatar May 25 '11 09:05 mscdex

oops, that is my fault, I tried to dump first argument. Now I receive the data, but there is no useable information. 'Profile' record is also very strange.

{ name: '111111', fullname: undefined, warnLevel: 0, class: 0, memberSince: undefined, onlineSince: undefined, idleMins: undefined, flags: undefined, status: undefined, IP: undefined, capabilities: undefined, instanceNum: undefined, profileSetOn: undefined, awaySetOn: undefined, countryCode: undefined, icons: undefined, statusMsg: undefined, mood: undefined, profile: '

this is a test of the current twisted.oscar code.
\ncurrent features:
\n* send me a message, and you should get it back.
\n* invite me to a chat room. i'll repeat what people say. say 'leave' and i'll go.
\n* also, i hang out in '111111 Chat'. join that, i'll repeat what you say there.
\n* try warning me. just try it.
\n
\nif any of those features don't work, tell paul (Z3Penguin). thanks.' }

sidorares avatar May 25 '11 12:05 sidorares

Is this for AIM or ICQ?

mscdex avatar May 25 '11 19:05 mscdex

icq, connecting to login.icq.com

sidorares avatar May 26 '11 02:05 sidorares

Hmm... I'm not able to reproduce this one so far. Is the user on your list and/or have you authorized them?

Is this a personal ICQ number or a public (bot) number? I ask because they don't appear to be logged in at the moment.

On a slightly related note, I've just pushed changes that catches errors for requests on the Location service, which includes getInfo() requests. So if a user isn't online or some other similar error occurs, that error should now be correctly passed back to the callback.

mscdex avatar May 26 '11 08:05 mscdex

I used my personal number. I'll try it again.

sidorares avatar May 26 '11 08:05 sidorares