hexo-leancloud-counter-security icon indicating copy to clipboard operation
hexo-leancloud-counter-security copied to clipboard

Deploying: leancloud_counter_security_sync ERROR

Open fomiuna opened this issue 5 years ago • 1 comments

Hello! I was implementing the counter function in Hexo NexT with LeanCloud according to [1]https://leaferx.online/2018/03/16/lc-security-en/. But after deploying, the counting still didn't work (remained 0). Then I turned to check [2]https://github.com/theme-next/hexo-leancloud-counter-security#usage and found that there was an additional server_url attribute in leancloud_counter_security of site config which [1] did not have. So I used https://leancloud.cn as url but I got Unauthorized [401 POST] ERROR when deploying leancloud_counter_security_sync. Then I tried my blog url but got the undefined [405 POST] ERROR.
Could anyone offer some help? Thanks!
p.s. What's the relation between the server_url in leancloud_visitors in theme config and the server_url in leancloud_counter_security in site config?

fomiuna avatar Nov 12 '20 14:11 fomiuna

See https://leancloud.cn/docs/custom-api-domain-guide.html#hash-1410615135

LEAFERx avatar Nov 12 '20 15:11 LEAFERx