Comments (9)
I'll second this as a problem in Ubuntu 10.04 as well:
dlynes@pronto:/usr/share/pyshared/creepy$ creepymap
/usr/lib/pymodules/python2.6/flickrapi/init.py:45: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/creepy/creepymap.py", line 514, in button_authorize_twitter
url = self.oauth.get_authorization_url(True)
File "/usr/local/lib/python2.6/dist-packages/tweepy-1.7.1-py2.6.egg/tweepy/auth.py", line 103, in get_authorization_url
raise TweepError(e)
tweepy.error.TweepError: HTTP Error 401: Unauthorized
^CTraceback (most recent call last):
File "/usr/bin/creepymap", line 5, in
c.main()
File "/usr/lib/pymodules/python2.6/creepy/creepymap.py", line 1005, in main
gtk.main()
from creepy.
Fwiw, if launched from the applications menu (no console), it just acts like the 'Authorize Creepy' button doesn't do anything.
from creepy.
I dove into the tweepy code for this (and wiresharked it), and it seems as though Twitter is not recognizing tweepy's credentials.
Here's the request to 199.59.149.230 (resolves locally to www4.twitter.com):
GET /oauth/request_token HTTP/1.1
Accept-Encoding: identity
Host: twitter.com
Connection: close
Authorization: OAuth realm="", oauth_nonce="50841128", oauth_timestamp="1308576680", oauth_consumer_key="nW9dRFaHXMXWucxeTWiC8Q", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_signature="I88%2BhPuI44pVnMzKbzPavUURoMY%3D"
User-Agent: Python-urllib/2.6
And here's the response from 199.59.149.230 (resolves locally to www4.twitter.com):
HTTP/1.1 401 Unauthorized
Date: Mon, 20 Jun 2011 17:30:44 GMT
Server: hi
Status: 401 Unauthorized
X-Transaction: 1308591044-28205-30002
X-Frame-Options: SAMEORIGIN
Last-Modified: Mon, 20 Jun 2011 17:30:44 GMT
X-Runtime: 0.01166
Content-Type: text/html; charset=utf-8
Content-Length: 44
Pragma: no-cache
X-Revision: DEV
Expires: Tue, 31 Mar 1981 05:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
X-MID: 1aee9adea5e0b7c88b355964ca5eb506c8105355
Set-Cookie: k=216.185.79.50.1308591044524011; path=/; expires=Mon, 27-Jun-11 17:30:44 GMT; domain=.twitter.com
Set-Cookie: guest_id=130859104453461339; path=/; expires=Wed, 20 Jul 2011 17:30:44 GMT
Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCLi3Gq4wAToHaWQiJTRkMzYwNDQ5YmNjYWU0%250AMWNiNDAyYTJlMGRjZjg0OTJlIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--94021f21a0c04a5e473ac26e45f265489c2be655; domain=.twitter.com; path=/; HttpOnly
X-XSS-Protection: 1; mode=block
Vary: Accept-Encoding
Connection: close
from creepy.
Thank you very much for your feedback and the digging in . I won't have time to look into it until later tonight , but I'm pretty sure it has to do with your systems time. In the above example the request has an oauth timestap with value 1308576680 which is Mon, 20 Jun 2011 17:45:17 GMT and the response has Mon, 20 Jun 2011 17:30:44 GMT . I've had users with the same exact error before and it was due to wrong time on their machine, hence the oauth failure. Check this , and if it fails to resolve the problem , I'll look into it more later.
For the "button" issue , you mean that when clicking it, no browser is invoked ?
from creepy.
Good catch on the date/time thing. I'll see what I can do to fix that.
Yes, no browser is invoked. However, I don't believe the browser gets invoked until after the oauth authentication has completed, anyways (based on my reading of the code).
from creepy.
Yeap, I had spent quite a few hours/days of early debugging before I realized the time issues with oAuth , and since then it is the first thing to come in mind.
Yes, it fails to get the authorization URL and the exception is thrown there , right before the call to invoke the web browser. Somebody called "insufficient error handling" ? :) I'll get down to it .
Let me know if fixing the time issue helps you overcome the authorization process issue after all
Cheers
from creepy.
I figured out what it was. Time might be part of it, but it's not the only problem. My system time zone was set to UTC, but my desktop was set to UTC -4. That being said, it was probably using my system time zone, not the desktop time zone.
However, what I also found was that the twitter authorization process for this is a bit buggy. Sometimes it gets denied, sometimes it works. It's not a bug in creepymap, I don't think...I'm pretty sure it's a bug in twitter, itself.
from creepy.
So, I'm experiencing this same bug in Ubuntu 10.10 but I'm less savy with the code. How do I fix this?
from creepy.
Good evening!
Can you help me please?
The plugin configuration file is working with twitter but when I search for a perso it gives me the error below:
DEBUG:2018-04-07 22:43:28,510 In twitter.py:56: Searching for Targets from Twitter Plugin. Search term is : cients390
DEBUG:2018-04-07 22:43:30,088 In twitter.py:62: Twitter returned 1 results
ERROR:2018-04-07 22:43:30,088 In twitter.py:86: 'ascii' codec can't decode byte 0xe7 in position 10: ordinal not in range(128)
ERROR:2018-04-07 22:43:30,088 In twitter.py:87: Error searching for targets in Twitter plugin.
from creepy.
Related Issues (20)
- Instagram configuration issue win 10 32bit
- Twitter configuration issue HOT 2
- installation HOT 2
- Unethical HOT 2
- Error: BadDrawable (Debian)
- Why don't show the location exact?
- map not working and location data not received from twiter
- Instagram configuration error HOT 5
- ImportError: No module named datetime
- Trying to get in touch regarding a security issue
- Map won't load on geocreepy. Says: the browser I'm using is unsupported by Google. I'm using Chrome on Windows 10. Please advise. TY
- "You must include a valid client_id, response_type, and redirect_uri parameters"
- Instagram Login Sandbox HOT 4
- ASCII
- parrot 3.6 error HOT 5
- Twitter authorization not working
- ImportError: No module named QtWebKit HOT 6
- Flickr / Yahoo login "timeout"
- Invalid Syntax on running 'python3 CreepyMain.py' HOT 11
- Instagram plugin: This endpoint has been retired
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from creepy.