Skip to content
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

Deploying: leancloud_counter_security_sync ERROR #24

Open
fomiuna opened this issue Nov 12, 2020 · 1 comment
Open

Deploying: leancloud_counter_security_sync ERROR #24

fomiuna opened this issue Nov 12, 2020 · 1 comment

Comments

@fomiuna
Copy link

fomiuna commented Nov 12, 2020

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?

@LEAFERx
Copy link
Contributor

LEAFERx commented Nov 12, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants