[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-05-17 Thread gerritbot
gerritbot added a comment. Change 874903 **merged** by jenkins-bot: [pywikibot/core@master] [IMPR] return 'https' scheme with Family.protocol() https://gerrit.wikimedia.org/r/874903 TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-03 Thread Dimpizzy
Dimpizzy added a comment. This is solved for me. I'm not sure if there's actually any bug to fix, so if not it can be closed. TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Dimpizzy Cc:

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-03 Thread gerritbot
gerritbot added a comment. Change 874903 had a related patch set uploaded (by Xqt; author: Xqt): [pywikibot/core@master] [IMPR] return 'https' scheme with Family.protocol() https://gerrit.wikimedia.org/r/874903 TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-03 Thread Dimpizzy
Dimpizzy added a comment. In T326046#8495181 , @Xqt wrote: > I've tested the generate-family-file script and indeed it added that method to

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-03 Thread Dimpizzy
Dimpizzy added a comment. Ok, good to know, thanks. TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Dimpizzy Cc: JJMC89, Xqt, Tommy_Kronkvist, Aklapper, Reception123, pywikibot-bugs-list,

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-03 Thread Xqt
Xqt added a comment. In T326046#8495095 , @Dimpizzy wrote: > So Void over at Miraheze's Phabricator figured out that I needed to add this code to the family file, and now it logs in

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-03 Thread Dimpizzy
Dimpizzy added a comment. If I use the above code in the family file, then response.request.body equals: action=query=userinfo=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights==5=json If the https code isn't included, it equals None. TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-03 Thread Dimpizzy
Dimpizzy added a comment. So Void over at Miraheze's Phabricator figured out that I needed to add this code to the family file, and now it logs in fine: > Hmm, I've been looking over your logs and the only suggestion I have at the moment

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-03 Thread gerritbot
gerritbot added a comment. Change 874026 **merged** by jenkins-bot: [pywikibot/core@master] [IMPR] improve warning if a Non-JSON response was received from server https://gerrit.wikimedia.org/r/874026 TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-02 Thread JJMC89
JJMC89 added a comment. In T326046#8494108 , @Dimpizzy wrote: > Is there a way to output and see the exact request sent to the server when it serves up HTML instead of JSON? pywikibot/data/api/_requests.py#L715-L739

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-02 Thread Dimpizzy
Dimpizzy added a comment. Is there a way to output and see the exact request sent to the server when it serves up HTML instead of JSON? This is what I spent a couple hours digging through the code for, to see if maybe the format=json was missing or something else was wrong, but I didn't

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-02 Thread Dimpizzy
Dimpizzy added a comment. @Xqt Ok, thanks, I'll create a bug report on Miraheze's phabricator then. TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Dimpizzy Cc: Xqt, Tommy_Kronkvist,

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Xqt
Xqt added a comment. In T326046#8493150 , @Dimpizzy wrote: > You mean there's an issue with Miraheze? Yes. > Everytime I run it, though, it does receive the api.php HTML page, and I can view the JSON formatted version in the

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Dimpizzy
Dimpizzy added a comment. In T326046#8493149 , @Xqt wrote: > @Dimpizzy: With the patch given above I've adjusted the error warning a bit. This is all I can do in this case if the server is temporary down. The request will be retried

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Xqt
Xqt added a comment. @Dimpizzy: With the patch given above I've adjusted the error warning a bit. This is all I can do in this case if the server is temporary down. The request will be retried several times. TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread gerritbot
gerritbot added a comment. Change 874026 had a related patch set uploaded (by Xqt; author: Xqt): [pywikibot/core@master] [IMPR] improve warning if a Non-JSON response was received from server https://gerrit.wikimedia.org/r/874026 TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Dimpizzy
Dimpizzy added a comment. In T326046#8493049 , @Xqt wrote: > I played a bit with this issue; this bug occurres randomly. It looks like the server is temporarily not available. This also means that Pywikibot 8 does not solve it. Oh

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Xqt
Xqt added a comment. I played a bit with this issue; this bug occurres randomly. It looks like the server is temporarily not available. This also means that Pywikibot 8 does not solve it. TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Dimpizzy
Dimpizzy added a comment. In T326046#8493007 , @Xqt wrote: > In T326046#8493004 , @Dimpizzy wrote: > >> Just to satisfy my curiosity since I spent a while trying to find it, could

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Xqt
Xqt added a comment. In T326046#8493004 , @Dimpizzy wrote: > Just to satisfy my curiosity since I spent a while trying to find it, could you say what the issue was, if it's not super complex? I have no idea at the moment but the

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Dimpizzy
Dimpizzy added a comment. > Sure, Pywikibot 8 (master) is ready to use but it has "under development" state which means it could fail if new features are implemented whereas "stable" means it is ready for production systems. Anyway using master could help to find and fix those bugs which

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Xqt
Xqt added a comment. In T326046#8492990 , @Dimpizzy wrote: > #2, I can wait, thanks. Is Pywikibot 8 usable in its current state? Sure, Pywikibot 8 (master) is ready to use but it has "under development" state which means it could

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Dimpizzy
Dimpizzy added a comment. Just to satisfy my curiosity since I spent a while trying to find it, could you say what the issue was? TASK DETAIL https://phabricator.wikimedia.org/T326046 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dimpizzy Cc:

[Pywikipedia-bugs] [Maniphest] [Commented On] T326046: Cannot login to miraheze.org wiki due to no json response

2023-01-01 Thread Dimpizzy
Dimpizzy added a comment. In T326046#8492986 , @Xqt wrote: > I was able to reproduce it. This issue is already solved with Pywikibot 8 which is the current master branch but still unser development. I could backport a relatedchange to