tumblr / pytumblr

A Python Tumblr API v2 Client
Apache License 2.0
723 stars 196 forks source link

interinterinteractive_console.py is not working it gave this huge error after inputing the consumer and secret key #140

Closed faris-xhan closed 2 years ago

faris-xhan commented 4 years ago

Retrieve consumer key and consumer secret from http://www.tumblr.com/oauth/apps Paste the consumer key here: * Paste the consumer secret here: *** Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 285, in _read_status raise BadStatusLine(line) http.client.BadStatusLine: Surf Safely

 

<span style=\"font-size:48px;\"><span style=\"color: rgb(0, 0, 255);\">Surf Safely!

 
<span style=\"font-size:28px;\"><span style=\"color: rgb(255, 0, 0);\">This website is not accessible.
 
 
<span style=\"font-size:26px;\">The site you are trying to access contains content that is prohibited for viewership from within Pakistan.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen retries = retries.increment( File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise raise value.with_traceback(tb) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 285, in _read_status raise BadStatusLine(line) urllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine('Surf Safely

 

<span style=\"font-size:48px;\"><span style=\"color: rgb(0, 0, 255);\">Surf Safely!

 
<span style=\"font-size:28px;\"><span style=\"color: rgb(255, 0, 0);\">This website is not accessible.
 
 
<span style=\"font-size:26px;\">The site you are trying to access contains content that is prohibited for viewership from within Pakistan.
'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "interactive_console.py", line 73, in tokens = new_oauth(yaml_path) File "interactive_console.py", line 30, in new_oauth fetch_response = oauth_session.fetch_request_token(request_token_url) File "/home/faris/.local/lib/python3.8/site-packages/requests_oauthlib/oauth1_session.py", line 287, in fetch_request_token token = self._fetch_token(url, request_kwargs) File "/home/faris/.local/lib/python3.8/site-packages/requests_oauthlib/oauth1_session.py", line 365, in _fetch_token r = self.post(url, request_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 578, in post return self.request('POST', url, data=data, json=json, kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 530, in request resp = self.send(prep, send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('Surf Safely

 

<span style=\"font-size:48px;\"><span style=\"color: rgb(0, 0, 255);\">Surf Safely!

 
<span style=\"font-size:28px;\"><span style=\"color: rgb(255, 0, 0);\">This website is not accessible.
 
 
<span style=\"font-size:26px;\">The site you are trying to access contains content that is prohibited for viewership from within Pakistan.
'))