Skip to content

getInfo doesen't work #1

Open
sidorares opened this Issue May 25, 2011 · 6 comments

2 participants

@sidorares

callback is fired but info object undefined

@mscdex
Owner
mscdex commented May 25, 2011

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.

@sidorares

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.' }

@mscdex
Owner
mscdex commented May 25, 2011

Is this for AIM or ICQ?

@sidorares

icq, connecting to login.icq.com

@mscdex
Owner
mscdex commented May 26, 2011

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.

@sidorares

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

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.