-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pattypan should send a correct user agent when making request to commons.wikimedia.org #146
Comments
It appears to be used in the session setup: pattypan/src/pattypan/Session.java Line 58 in 2809ce7
|
Yeah, which is why I've created the task. The useragent doesn't seem to be making it to Wikimedia's Logstash servers which makes me feel like something in the plumbing isn't quite right here. I noticed yarl/vicuna@0dc286f where it was done in a few more places, I'm not sure specifically why like that |
We only call I will need to have a look when I got a debugger at hand, I assume that |
The initialization of the Wiki.java session in Session.java was overwritten by the one in Main.java. This change removes the initialization in Session.java entierly. Side effects: - added logging of the user agent
The initialization of the Wiki.java session in Session.java was overwritten by the one in Main.java. I removed the one in Session.java as it would end up being overwritten anyway. Marking this for the 22.03 release. |
Yay. Thanks! |
Following on from #138 and the Phabricator tasks...
Can someone please look and verify pattypan is actually using its own user agent in requests?
pattypan/src/pattypan/Settings.java
Line 46 in 2809ce7
Looking at some of the code, it does seem there is some setup for it such as surrounding the above, but looking at the logs (from the Wikimedia side), it doesn't seem to result in any entries, which is odd.
vicuna seems to be fine.
The text was updated successfully, but these errors were encountered: