MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{ "error": { "code": "internal_api_error_Wikimedia\\Assert\\PreconditionException", "info": "[6d39c8b48d271ab9c6eda09a] Exception caught: Precondition failed: This Title instance does not represent a proper page, but merely a link target.", "errorclass": "Wikimedia\\Assert\\PreconditionException", "*": "Wikimedia\\Assert\\PreconditionException at /www/wwwroot/araceae.wiki/vendor/wikimedia/assert/src/Assert.php(49)\nfrom /www/wwwroot/araceae.wiki/vendor/wikimedia/assert/src/Assert.php(49)\n#0 /www/wwwroot/araceae.wiki/includes/Title.php(4190): Wikimedia\\Assert\\Assert::precondition()\n#1 /www/wwwroot/araceae.wiki/includes/Title.php(4171): Title->assertProperPage()\n#2 /www/wwwroot/araceae.wiki/includes/Revision/RevisionStore.php(1828): Title->getId()\n#3 /www/wwwroot/araceae.wiki/includes/Revision/RevisionStore.php(1733): MediaWiki\\Revision\\RevisionStore->ensureRevisionRowMatchesPage()\n#4 /www/wwwroot/araceae.wiki/includes/Revision/RevisionStore.php(1609): MediaWiki\\Revision\\RevisionStore->newRevisionFromRowAndSlots()\n#5 /www/wwwroot/araceae.wiki/includes/api/ApiFeedContributions.php(240): MediaWiki\\Revision\\RevisionStore->newRevisionFromRow()\n#6 /www/wwwroot/araceae.wiki/includes/api/ApiFeedContributions.php(209): ApiFeedContributions->feedItem()\n#7 /www/wwwroot/araceae.wiki/includes/api/ApiMain.php(1900): ApiFeedContributions->execute()\n#8 /www/wwwroot/araceae.wiki/includes/api/ApiMain.php(875): ApiMain->executeAction()\n#9 /www/wwwroot/araceae.wiki/includes/api/ApiMain.php(846): ApiMain->executeActionWithErrorHandling()\n#10 /www/wwwroot/araceae.wiki/api.php(90): ApiMain->execute()\n#11 /www/wwwroot/araceae.wiki/api.php(45): wfApiMain()\n#12 {main}" } }