asolfre / qwit

Automatically exported from code.google.com/p/qwit
GNU General Public License v3.0
0 stars 0 forks source link

Qwit fails to open twitter oauth page, and don't show useful log to output #166

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install qwit
2. Run qwit
3. Try to add a twitter account and authorize it

What is the expected output? What do you see instead?
open oauth twitter screen

What version of the product are you using? On what operating system?
Qwit 1.1_pre2 via Gentoo Ebuilds

Please provide any additional information below.

The problem start to happens at work, when I reinstalled all stuff and qwit, 
copied my entire ~/ from old pc and so qwit not work more.

At home, I have same qwit compiled and working fine.

Any useful log is outputed when running in terminal and, same problem happens 
with qwit checkout form svn compiled manually.

The output of qwit when run:

 $ qwit -d
Fri Oct 1 12:08:07 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_add_friend(QString)
Fri Oct 1 12:08:07 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_unfollow_friend(QString,UserMgmtWidgetItem*)
Fri Oct 1 12:08:07 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_block_friend(QString,UserMgmtWidgetItem*)
Fri Oct 1 12:08:07 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_follow_follower(QString,UserMgmtWidgetItem*)
Fri Oct 1 12:08:07 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_unfollow_follower(QString,UserMgmtWidgetItem*)
Fri Oct 1 12:08:07 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_block_follower(QString,UserMgmtWidgetItem*)
Fri Oct 1 12:08:07 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_unblock_user(QString,UserMgmtWidgetItem*)
Fri Oct 1 12:08:07 2010 Warning: QLayout: Attempting to add QLayout "" to 
FriendshipsMgmtPage "", which already has a layout
Fri Oct 1 12:08:07 2010 Warning: QLayout: Attempting to add QLayout "" to 
MainWindow "MainWindow", which already has a layout

QCA packages version
$ eix -I qca
[I] app-crypt/qca
     Available versions:  (2) 2.0.2-r2!t
        {aqua debug doc examples}
     Installed versions:  2.0.2-r2(2)!t(11:36:16 PM 02/22/2010)(-debug -doc -examples)
     Homepage:            http://delta.affinix.com/qca/
     Description:         Qt Cryptographic Architecture (QCA)

[I] app-crypt/qca-ossl
     Available versions:  (2) 2.0.0_beta3-r1 2.0.0_beta3-r2
        {debug}
     Installed versions:  2.0.0_beta3-r2(2)(07:38:30 PM 06/15/2010)(-debug)
     Homepage:            http://delta.affinix.com/qca/
     Description:         TLS, S/MIME, PKCS#12, crypto algorithms plugin for QCA

Found 2 matches.

QCA packages files:
$ qlist qca
/usr/lib/pkgconfig/qca2.pc
/usr/lib/qca2/libqca.so
/usr/lib/qca2/libqca.so.2.0
/usr/lib/qca2/libqca.prl
/usr/lib/qca2/libqca.so.2.0.2
/usr/lib/qca2/libqca.so.2
/usr/include/qca2/QtCrypto/QtCrypto
/usr/include/qca2/QtCrypto/qca_support.h
/usr/include/qca2/QtCrypto/qca.h
/usr/include/qca2/QtCrypto/qca_core.h
/usr/include/qca2/QtCrypto/qca_cert.h
/usr/include/qca2/QtCrypto/qca_keystore.h
/usr/include/qca2/QtCrypto/qca_export.h
/usr/include/qca2/QtCrypto/qca_securemessage.h
/usr/include/qca2/QtCrypto/qca_securelayer.h
/usr/include/qca2/QtCrypto/qcaprovider.h
/usr/include/qca2/QtCrypto/qca_tools.h
/usr/include/qca2/QtCrypto/qca_publickey.h
/usr/include/qca2/QtCrypto/qca_textfilter.h
/usr/include/qca2/QtCrypto/qca_basic.h
/usr/include/qca2/QtCrypto/qpipe.h
/usr/bin/qcatool2
/usr/share/qt4/mkspecs/features/crypto.prf
/usr/share/doc/qca-2.0.2-r2/README.bz2
/usr/share/doc/qca-2.0.2-r2/TODO.bz2
/usr/share/man/man1/qcatool2.1.bz2
/etc/env.d/44qca2
/usr/lib/qt4/plugins/crypto/libqca-ossl.so

$ qlist qca-ossl
/usr/lib/qt4/plugins/crypto/libqca-ossl.so

Original issue reported on code.google.com by philipe.rp@gmail.com on 5 Oct 2010 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago

Portage environment:
# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 
2.6.34-gentoo-r2 i686)
=================================================================
System uname: 
Linux-2.6.34-gentoo-r2-i686-Intel-R-_Core-TM-2_CPU_4400_@_2.00GHz-with-gentoo-2.
0.1
Timestamp of tree: Mon, 04 Oct 2010 13:30:19 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     9999
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL AdobeFlash-10.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ 
/etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release 
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ 
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch 
protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://212.219.56.133/sites/www.ibiblio.org/gentoo/ 
ftp://mirror.icis.pcz.pl/gentoo/ ftp://de-mirror.org/distro/gentoo/"
LANG="en pt_BR pt"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pt_BR pt"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles 
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/mysql"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl alsa amr autotrace bash-completion berkdb bzip2 cairo cdda 
chm cleartype cli community cracklib crypt cups curl cxx daap dbus dirac djvu 
dri ebook embedded encode exif extra-tools fam ffmpeg fftw firefox3 flac 
fontconfig fontforge fortran ftp fts3 gd gdbm ggi gif gnutls google 
google-gadgets gpg gpm graphviz gs gsm gstreamer gtk hal hdri iconv imagemagick 
inotify ipod ipv6 java java6 javascript jbig jpeg jpeg2k kde kig-scripting kipi 
lastfm ldap libnotify lm_sensors lua lzma mad md5sum mmx mng modules mozdevelop 
mozdom mp3 mp3rtp mp3tunes mplayer mtp mudflap mysql ncurses network 
networkmanager nls nptl nptlonly nsplugin nss ogg openexr opengl openmp 
optimized-qmake pam pcre pdf perl phonon php png postgres pppd ps python 
qalculate qt qt3support qt4 qwt raw rdp readline reflection replytolist rss 
samba schroedinger scim sdl semantic-desktop session spell sql sqlite sqlite3 
sse sse2 ssl startup-notification subversion svg symlink sysfs tcpd theora 
threads thumbnail tiff truetype unicode utils vdpau vhook vim-syntax vnc vorbis 
web webinterface webkit win32codecs wmf x264 x86 xcomposite xml xmlpatterns 
xorg xvid zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem 
bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 
hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem 
ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug 
file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null 
plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic 
authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm 
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 
cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter 
file_cache filter headers include info log_config logio mem_cache mime 
mime_magic negotiation rewrite setenvif speling status unique_id userdir 
usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool 
swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore 
fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver 
oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt 
ubx" INPUT_DEVICES="mouse keyboard vmmouse" KERNEL="linux" LCD_DEVICES="bayrad 
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en 
pt_BR pt" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa vmware" 
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface 
geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac 
delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, 
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Original comment by philipe.rp@gmail.com on 5 Oct 2010 at 6:42

GoogleCodeExporter commented 9 years ago
Attaching full compilation log.

Original comment by philipe.rp@gmail.com on 5 Oct 2010 at 6:43

Attachments:

GoogleCodeExporter commented 9 years ago
I just tried to copy my conf from home pc to work pc, to try 
(~/.config/arti/qwit2.conf), and here is output:

$ qwit 
Fri Oct 1 15:14:02 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_add_friend(QString)
Fri Oct 1 15:14:02 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_unfollow_friend(QString,UserMgmtWidgetItem*)
Fri Oct 1 15:14:02 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_block_friend(QString,UserMgmtWidgetItem*)
Fri Oct 1 15:14:02 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_follow_follower(QString,UserMgmtWidgetItem*)
Fri Oct 1 15:14:02 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_unfollow_follower(QString,UserMgmtWidgetItem*)
Fri Oct 1 15:14:02 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_block_follower(QString,UserMgmtWidgetItem*)
Fri Oct 1 15:14:02 2010 Warning: QMetaObject::connectSlotsByName: No matching 
signal for on_unblock_user(QString,UserMgmtWidgetItem*)
Fri Oct 1 15:14:02 2010 Warning: QLayout: Attempting to add QLayout "" to 
FriendshipsMgmtPage "", which already has a layout
Fri Oct 1 15:14:02 2010 Warning: QLayout: Attempting to add QLayout "" to 
MainWindow "MainWindow", which already has a layout
Fri Oct 1 15:14:04 2010 Warning: "Twitter::requestFinished() 18 error 401 
Unauthorized" 
Fri Oct 1 15:14:07 2010 Warning: "Twitter::requestFinished() 29 error 401 
Unauthorized" 
Fri Oct 1 15:14:07 2010 Warning: "Twitter::requestFinished() 8 error 401 
Unauthorized"

I can't get it to auth with oauth too.

Original comment by philipe.rp@gmail.com on 5 Oct 2010 at 6:49

GoogleCodeExporter commented 9 years ago
Hello. Didn't notice that Qwit is appeared in Gentoo's main package tree :) Do 
you use any proxy server to access Internet on your work pc?

Original comment by artem.iglikov on 6 Oct 2010 at 2:38

GoogleCodeExporter commented 9 years ago
Yep, he is masked by keywords, but exists :).

At work we have a proxy, but I don't use it to access anything (and never 
used). I tryed without https too, same bug.

I'll try setup with proxys in qwit, but if isn't proxys what can be?

Original comment by philipe.rp@gmail.com on 6 Oct 2010 at 3:02

GoogleCodeExporter commented 9 years ago
Are you able to access twitter and any other website from browser directly 
without proxy? If so, the problem looks very strange

Original comment by artem.iglikov on 6 Oct 2010 at 5:44

GoogleCodeExporter commented 9 years ago
Yep, I access any site, every day, without problems, using proxy via FF or not 
using proxy via chromium (chrome for linux).

How I can debug better what is happening?

Original comment by philipe.rp@gmail.com on 6 Oct 2010 at 11:26

GoogleCodeExporter commented 9 years ago
Just to let guys know, with proxy, samething happens, same screen.

Original comment by philipe.rp@gmail.com on 6 Oct 2010 at 1:19

GoogleCodeExporter commented 9 years ago
Hey guys, I'm back.
I'm just hacking a little the code (I don't know C++) and chaged it:

Index: src/AccountConfigurationDialog.cpp
===================================================================
--- src/AccountConfigurationDialog.cpp  (revision 353)
+++ src/AccountConfigurationDialog.cpp  (working copy)
@@ -98,7 +98,21 @@
         setEnabled(true);
         oauthDialog->showNormal();
     } else {
-        QMessageBox::critical(this, tr("Error!"), tr("Error while trying 
OAuth!"));
+               QString strerr;
+               if (qoauth->error() == QOAuth::BadRequest) { strerr = "Bad 
Request (HTTP 400)"; }
+               if (qoauth->error() == QOAuth::Unauthorized) { strerr = 
"Unauthorized (HTTP 401)"; }
+               if (qoauth->error() == QOAuth::Forbidden) { strerr = "Forbidden 
(HTTP 403)"; }
+               if (qoauth->error() == QOAuth::Timeout) { strerr = "Request 
timeout"; }
+               if (qoauth->error() == QOAuth::ConsumerKeyEmpty) { strerr = 
"Consumer key has not been provided"; }
+               if (qoauth->error() == QOAuth::ConsumerSecretEmpty) { strerr = 
"Consumer secret has not been provided."; }
+               if (qoauth->error() == QOAuth::UnsupportedHttpMethod) { strerr 
= "The HTTP method is not supported by the request. Note that 
QOAuth::Interface::requestToken() and QOAuth::Interface::accessToken() accept 
only HTTP GET and POST requests."; }
+               if (qoauth->error() == QOAuth::RSAPrivateKeyEmpty) { strerr = 
"RSA private key has not been provided."; }
+               if (qoauth->error() == QOAuth::RSADecodingError) { strerr = 
"There was a problem decoding the RSA private key (the key is invalid or the 
provided passphrase is incorrect)"; }
+               if (qoauth->error() == QOAuth::RSAKeyFileError) { strerr = "The 
provided key file either doesn't exist or is unreadable."; }
+               if (qoauth->error() == QOAuth::OtherError) { strerr = "A unknow 
network-related error."; }
+        
+               QMessageBox::critical(this, tr("Error!"), tr("Error while 
trying OAuth!"));
+               QMessageBox::critical(this, tr("Error!"), strerr);
         setEnabled(true);
     }
 }

So now, I get always error Unathorized (HTPT 401) ... some idea?

Original comment by philipe.rp@gmail.com on 11 Oct 2010 at 7:58

GoogleCodeExporter commented 9 years ago
Really strange problem. Have you tried to remove ~/.config/arti/qwit2.conf and 
start from scratch?

Original comment by artem.iglikov on 12 Oct 2010 at 1:46

GoogleCodeExporter commented 9 years ago
Remove config is first thing that I tried.

I installed a new Gentoo/Funtoo install, for amd64 this time.

The bug happens with pack downloaded from qwit site too (amd64 & x86), with 
last svn, with code changed and unchanged. I changed keys in Services files, 
and samething happens.

I tried with qoaut 1.0, 1.0-r1 and 1.0.1 versions.
My QCA versions is:
app-crypt/qca 2.0.2-r2
app-crypt/qca-ossl 2.0.0_beta3-r2

Also I installed liboauth (I don't know if matters...) version 0.9.0.

This is really weird, using configurations from working install, all that I get 
is 401 for configured accounts. Checking working binary, keys are same that 
svn... I have any idea of what is happening.. but maybe is time to look outside 
(lib oauth, some unknow dependency?).

Original comment by philipe.rp@gmail.com on 12 Oct 2010 at 4:35

GoogleCodeExporter commented 9 years ago
Qwit and QOAuth don't need liboauth. I have the same Gentoo installation (but 
~amd64), with exactly the same versions of qca and qoauth, and everything works 
fine. With already configured account (which gives 401) have you tried to 
rerequest OAuth authorization (from account configuration dialog)?

Original comment by artem.iglikov on 12 Oct 2010 at 6:04

GoogleCodeExporter commented 9 years ago
Yes, I tried that too. I have same problem as a fresh install.
Attached is a shot with error that I receive, applying patch from comment 11.

Have some way of turn this errors more detailed? (I don't know C++ and QOauth 
enought to test)

Original comment by philipe.rp@gmail.com on 12 Oct 2010 at 4:30

Attachments:

GoogleCodeExporter commented 9 years ago
Same error here...

"Twitter::requestFinished() 8 error 401 Unauthorized"

:(

Original comment by Willian....@gmail.com on 13 Oct 2010 at 1:28

GoogleCodeExporter commented 9 years ago
I have a related issue here guys.

I'm on ubuntu 10.10 now, and dowloaded qwit binary for x86_64, that works 
awesome well when executed binary. After, to don't have do execute in my ~/ 
directory every time I get a deb:  qwit_1.1+svn353-3~lffl~lucid~ppa_amd64.deb

It works well too, on first run.

After, both from deb and local binary doesn't works more when need to get new  
twits.

OAuth screen works very well, but when I click in more or in update button:

dom out 31 09:02:23 2010 Warning: "Twitter::requestFinished() 3 error 400 Bad 
Request" 
dom out 31 09:02:23 2010 Warning: "Twitter::requestFinished() 4 error 400 Bad 
Request" 
dom out 31 09:02:24 2010 Warning: "Twitter::requestFinished() 5 error 400 Bad 
Request" 

any ideas? (it is a fresh ubuntu install)

Original comment by philipe.rp@gmail.com on 31 Oct 2010 at 11:03

GoogleCodeExporter commented 9 years ago
fresh Debian install, same issue.  still no resolution on this issue?

Original comment by Nautilus...@gmail.com on 9 Apr 2011 at 6:17

GoogleCodeExporter commented 9 years ago
I seem to have this problem.

Qwit isn't getting any tweets. It's not communicating. It's not doing anything.

I installed Qwit 1.0+svn305-1 from the Ubuntu Software Centre.

I set it up. On the accounts page Qwit asked for my Twitter user name and 
password. I entered them. Nada.

So I searched for help. I couldn't find a help section here. I found some help:

"Note: after installing Qwit, don't enter your Twitter username and password - 
that won't work (it doesn't work with any Twitter client anymore unless it uses 
SuperTweet). Instead, click the "Authorize" button under "OAuth", then follow 
the instructions."
http://www.webupd8.org/2010/09/install-qwit-11-pre-2-in-ubuntu-now.html

But I can't see any "authorize" button or "Oauth" anywhere. There's nothing 
like that in Qwit. I had to search some more to learn about Twitter changing 
its way of connecting to clients.

I wonder if the version of Qwit being delivered through Ubuntu Software Centre 
is out of date? Or does Qwit not work at all since Twitter's Oauth change?

Original comment by markjballard on 3 Jul 2011 at 12:57

GoogleCodeExporter commented 9 years ago
Hello. Most probably, Qwit in Ubuntu Software Centre is outdated. And Qwit does 
work with OAuth, if you don't see it, then you should upgrade it.

Original comment by artem.iglikov on 3 Jul 2011 at 2:38

GoogleCodeExporter commented 9 years ago
Thanks, Artem. It does indeed look like the version of Qwit in Ubuntu Software 
Centre is out-dated.

So who's neglecting those users who need help the most? I.e. those users like 
me who use Ubuntu Software Centre because we don't have the skills to do things 
any other way.

Is Canonical not bothering to update users with working versions of available 
software? Or is it Qwit that's not bothering?

All I know is, I installed Qwit and it doesn't work.

Original comment by markjballard on 10 Jul 2011 at 1:20

GoogleCodeExporter commented 9 years ago
Now do excuse me if I seem rude. But nobody seems to care about regular users 
who rely on Ubuntu and its Software Center to use Linux. I don't know any other 
way to install software. If I downloaded a package, I wouldn't know how to 
install it. There's never any instructions.

So the version of Qwit in Ubuntu Software Centre is out-dated. Does anybody 
care?

Original comment by markjballard on 17 Jul 2011 at 3:41

GoogleCodeExporter commented 9 years ago
Hello. I don't have Ubuntu to check the version by myself, but friend of mine 
has installed Qwit from Software Center recently and he said that it does work.

Original comment by artem.iglikov on 19 Jul 2011 at 10:21

GoogleCodeExporter commented 9 years ago
OK. Thanks. I'll give it another try.

Original comment by markjballard on 10 Aug 2011 at 10:16