kypeli/kQOAuth

Auth Reply Server not reading any data

Closed this issue · 1 comments

I am trying to use the library with Qt 5.0.2 and the Rdio API that uses OAuth but I am having trouble when it gets to the onBytesReady() slot of the KQOAuthAuthReplyServer.

After the line that reads:

QByteArray data = socket->readAll();

the data byte array is empty. I used wireshard to trace the TCP packets that are being sent from the rdio login page and I see a response that looks similar to the message below, but it is strange the server just can't seem to read the data. I have also noticed that the Rdio page then acts as if it didn't recieved the response and gets an error like the image attached.

GET /?oauth_verifier=0395&oauth_token=xq4k8j8qrsx4v7gk9a3s3ks7 HTTP/1.1
Host: localhost:49901
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: request_method=GET; _hasl-

screen shot 2013-06-07 at 9 47 50 pm

Any help is appreciated. Thanks

When moving this project to another computer I don't seem to see this issue anymore. Not sure. Maybe it was an environment issue.