[Pywikipedia-bugs] [Maniphest] [Triaged] T337045: cosmetic_changes.py: ServerError: HTTPConnectionPool: Max retries exceeded with url: /w/api.php (Caused by ConnectTimeoutError, 'Connection to wikispo

2023-05-19 Thread Xqt
Xqt triaged this task as "High" priority.
Xqt added a comment.


  Changeing _requests._http_request() to
  
kwargs = {}
schemes = ('http', 'https')
if self.json_warning and self.site.protocol() in schemes:
# retry with other scheme
kwargs['protocol'] = schemes[self.site.protocol() == 'http']

try:
response = http.request(self.site, uri=uri,
method='GET' if use_get else 'POST',
data=data, headers=headers, **kwargs)
except Exception:
raise
  
  gives a full traceback:
  
D:\pwb\GIT\core>pwb.py cosmetic_changes -lang:de -page:user:xqt/Test 
-simulate
Retrieving 1 pages from wikipedia:de.


>>> Benutzer:Xqt/Test <<<

1 read operation
Execution time: 6 seconds
Read operation time: 6.0 seconds
Script terminated by exception:

ERROR: HTTPConnectionPool(host='wikispot.org', port=80): Max retries 
exceeded with url: /w/api.php (Caused by 
ConnectTimeoutError(, 'Connection to wikispot.org timed out. (connect 
timeout=6.05)')) (ConnectTimeout)
Traceback (most recent call last):
  File "C:\Python311\Lib\site-packages\urllib3\connection.py", line 174, in 
_new_conn
conn = connection.create_connection(
   ^
  File "C:\Python311\Lib\site-packages\urllib3\util\connection.py", line 
95, in create_connection
raise err
  File "C:\Python311\Lib\site-packages\urllib3\util\connection.py", line 
85, in create_connection
sock.connect(sa)
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python311\Lib\site-packages\urllib3\connectionpool.py", line 
703, in urlopen
httplib_response = self._make_request(
   ^^^
  File "C:\Python311\Lib\site-packages\urllib3\connectionpool.py", line 
398, in _make_request
conn.request(method, url, **httplib_request_kw)
  File "C:\Python311\Lib\site-packages\urllib3\connection.py", line 244, in 
request
super(HTTPConnection, self).request(method, url, body=body, 
headers=headers)
  File "C:\Python311\Lib\http\client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Python311\Lib\http\client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Python311\Lib\http\client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Python311\Lib\http\client.py", line 1037, in _send_output
self.send(msg)
  File "C:\Python311\Lib\http\client.py", line 975, in send
self.connect()
  File "C:\Python311\Lib\site-packages\urllib3\connection.py", line 205, in 
connect
conn = self._new_conn()
   
  File "C:\Python311\Lib\site-packages\urllib3\connection.py", line 179, in 
_new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (, 'Connection to wikispot.org timed out. (connect 
timeout=6.05)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python311\Lib\site-packages\requests\adapters.py", line 440, in 
send
resp = conn.urlopen(
   ^
  File "C:\Python311\Lib\site-packages\urllib3\connectionpool.py", line 
787, in urlopen
retries = retries.increment(
  ^^
  File "C:\Python311\Lib\site-packages\urllib3\util\retry.py", line 592, in 
increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='wikispot.org', 
port=80): Max retries exceeded with url: /w/api.php (Caused by 
ConnectTimeoutError(, 'Connection to wikispot.org timed out. (connect 
timeout=6.05)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\pwb\GIT\core\pwb.py", line 39, in 
sys.exit(main())
 ^^
  File "D:\pwb\GIT\core\pwb.py", line 35, in main
runpy.run_path(str(path), run_name='__main__')
  File "", line 291, in run_path
  File "", line 98, in _run_module_code
  File "", line 88, in _run_code
  File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 514, in 
main()
  File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 498, in main
if not execute():
   ^
  File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 485, in execute
run_python_file(filename, script_args, module)
  File "D:\pwb\GIT\core\pywikibot\scripts\wrapper.py", line 147, in 
run_python_file
exec(compile(source, filename, 'exec', 

[Pywikipedia-bugs] [Maniphest] [Updated] T337022: Some pagegenerators functions are missing in documentation

2023-05-19 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review.

TASK DETAIL
  https://phabricator.wikimedia.org/T337022

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, Maintenance_bot
Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Urstrulykkr, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, 
Biggs657, Juan90264, Alter-paule, Beast1978, Un1tY, Hook696, Kent7301, 
joker88john, CucyNoiD, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, 
Lewizho99, Maathavan, Neuronton
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T337022: Some pagegenerators functions are missing in documentation

2023-05-19 Thread gerritbot
gerritbot added a comment.


  Change 921263 **merged** by jenkins-bot:
  
  [pywikibot/core@master] [doc] Add some pg generators to documentation
  
  https://gerrit.wikimedia.org/r/921263

TASK DETAIL
  https://phabricator.wikimedia.org/T337022

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, gerritbot
Cc: Aklapper, Xqt, pywikibot-bugs-list, Themindcoder, Adamm71, Jersione, 
Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, 
Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, 
Hook696, Kent7301, Urstrulykkr, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, 
Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, 
JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Created] T337045: cosmetic_changes.py: ServerError: HTTPConnectionPool: Max retries exceeded with url: /w/api.php (Caused by ConnectTimeoutError, 'Connection to wikispo

2023-05-19 Thread Meno25
Meno25 created this task.
Meno25 added projects: Pywikibot, Pywikibot-Scripts.
Restricted Application added subscribers: pywikibot-bugs-list, alaa, Aklapper.

TASK DESCRIPTION
  **Command line:**
  
python pwb.py cosmetic_changes -newpages:1000 -lang:arz
  
  **Output:**
  
ERROR: Traceback (most recent call last):
  File "C:\Users\Mohammed\Downloads\core\pywikibot\data\api\_requests.py", 
line 691, in _http_request
response = http.request(self.site, uri=uri,
   
  File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 
285, in request
r = fetch(baseuri, headers=headers, **kwargs)
^
  File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 
460, in fetch
callback(response)
  File "C:\Users\Mohammed\Downloads\core\pywikibot\comms\http.py", line 
335, in error_handling_callback
raise ServerError(response)
pywikibot.exceptions.ServerError: HTTPConnectionPool(host='wikispot.org', 
port=80): Max retries exceeded with url: /w/api.php (Caused by 
ConnectTimeoutError(, 'Connection to wikispot.org timed out. (connect 
timeout=6.05)'))
  
  **What happens?**
  
  - I get this error when processing the page arz:ميندوسينو كاونتى ، كاليفورنيا 

 because its wikitext contains this link:
  
* [[wikispot:mendocino:Hiking|Hiking trails in Mendocino County]] at 
WikiSpot
  
  - The website http://wikispot.org/ is offline (gives "This site can’t be 
reached ERR_CONNECTION_TIMED_OUT") message when trying to connect to it.
  - Eventually the bot crashes after several retries and the bot run has to be 
restarted manually.
  
  **What should have happened instead?**
  
  - When encountering such error, the bot should have skipped the page and 
continued working on other pages instead.
  
  **Software version:**
  
Pywikibot: [https] r-pywikibot-core (0fb9fb7, g17870, 2023/05/19, 10:09:31, 
master)
Release version: 8.2.0.dev2
setuptools version: 67.7.2
mwparserfromhell version: 0.6.4
wikitextparser version: n/a
requests version: 2.30.0
certificate test: ok
Python: 3.11.3 (tags/v3.11.3:f3909b8, Apr  4 2023, 23:49:59) [MSC v.1934 64 
bit (AMD64)]

TASK DETAIL
  https://phabricator.wikimedia.org/T337045

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Meno25
Cc: Aklapper, alaa, pywikibot-bugs-list, Meno25, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, 
Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Closed] T337022: Some pagegenerators functions are missing in documentation

2023-05-19 Thread Xqt
Xqt closed this task as "Resolved".

TASK DETAIL
  https://phabricator.wikimedia.org/T337022

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Themindcoder, Adamm71, Jersione, 
Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, 
Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, 
Hook696, Kent7301, Urstrulykkr, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, 
Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, 
JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Updated] T337022: Some pagegenerators functions are missing in documentation

2023-05-19 Thread gerritbot
gerritbot added a project: Patch-For-Review.

TASK DETAIL
  https://phabricator.wikimedia.org/T337022

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, gerritbot
Cc: Aklapper, Xqt, pywikibot-bugs-list, Themindcoder, Adamm71, Jersione, 
Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, 
Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, 
Hook696, Kent7301, Urstrulykkr, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, 
Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, 
JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T337022: Some pagegenerators functions are missing in documentation

2023-05-19 Thread gerritbot
gerritbot added a comment.


  Change 921263 had a related patch set uploaded (by Xqt; author: Xqt):
  
  [pywikibot/core@master] [doc] Add some pg generators to documentation
  
  https://gerrit.wikimedia.org/r/921263

TASK DETAIL
  https://phabricator.wikimedia.org/T337022

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, gerritbot
Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Urstrulykkr, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Started] T337022: Some pagegenerators functions are missing in documentation

2023-05-19 Thread Xqt
Xqt changed the task status from "Open" to "In Progress".
Xqt claimed this task.
Xqt triaged this task as "High" priority.

TASK DETAIL
  https://phabricator.wikimedia.org/T337022

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Urstrulykkr, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Created] T337022: Some pagegenerators functions are missing in documentation

2023-05-19 Thread Xqt
Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-Documentation.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Some pagegenerators functions are missing in documentation:
  
  - PageClassGenerator
  - PageWithTalkPageGenerator
  - RepeatingGenerator
  - DequePreloadingGenerator
  - PreloadingEntityGenerator

TASK DETAIL
  https://phabricator.wikimedia.org/T337022

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Urstrulykkr, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org