AstonJ
(AstonJ)
1
这些应该能工作吗?我以为可以在任何 URL 的末尾添加 .json?
https://meta.discourse.org/u.json
{“errors”:[“The requested URL or resource could not be found.”],“error_type”:“not_found”}
https://meta.discourse.org/u?period=monthly.json
访问被拒绝
尝试加载 /directory_items?period=monthly.json&order=likes_received 时出错
出错了。
1 个赞
Canapin
(Coin-coin le Canapin)
3
这些根本不是有效的 URL,您必须将扩展名添加到有效的可运行 URL 中。
1 个赞
AstonJ
(AstonJ)
5
那个也不行 
那有效的 URL 是什么?@Canapin 帖子/API 文档里的那个也不行……
有时,由于 Ember 路由的限制,纯文本链接需要在新的标签页中打开才能正常工作。也许你遇到的就是这个问题?试着将 URL 复制并粘贴到浏览器的地址栏中。
4 个赞
AstonJ
(AstonJ)
8
啊,原来是这个原因——把 URL 粘贴到新标签页里就正常了:+1
谢谢两位!
2 个赞
system
(system)
关闭
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.