https://bugzilla.wikimedia.org/show_bug.cgi?id=67313
--- Comment #16 from C. Scott Ananian <[email protected]> --- (In reply to jazeckel from comment #11) > Hmm, so this is kind of interesting. If I go to the URL but with the server > name instead of "localhost," I get what I assume is the correct result -- a > big block of key value pairs about locales and such. If I go to the URL > with "localhost", I get this: > > {"error":{"code":"readapidenied","info":"You need read permission to use > this module"}} > > I don't see any PHP error logs created though perhaps I am not looking in > the right place. This is generated if the anonymous user doesn't have appropriate permissions to access the API. In include/DefaultSettings.php there is a group of permissions including: $wgGroupPermissions['*']['writeapi'] = true; I'm guessing that one of these is prohibiting anonymous access to the API. I bet it's not actually the case that it works when you use the server name, I bet that somehow you're actually accessing the wrong wiki in that case. I'm not a mediawiki permissions expert though, so take what I say with a grain of salt. If you are mucking with permissions, this link may be useful: https://www.mediawiki.org/wiki/Extension:VisualEditor#Linking_with_Parsoid_in_private_wikis gwicke: we should probably not be timing out if the api request returns an error. Maybe we should look into this? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
