مشاكل في API للمواضيع والفئات الرئيسية في بيئة التطوير المحلية

Hi team,

I’ve setup a local Discourse server following this tutorial:


My version is 1.9.7.

Problem is when I call categories API and top topic API, I don’t get expected result.

1/ Refer the attachment for http://a52e9808.ngrok.io/categories.json result categories.json (22.6 KB)

You can see all post_count is 0 although I have some posts already.

2/ Also when I try to get top topic of a category, I only get empty result, although I already use All time filter. Not sure what I’m missing here.

Please help me look on this.

Thanks,
Anh

Make sure Sidekiq is running and manually trigger CategoryStats job.

Make sure the topics are not private or that you have sufficient privileges to view topics in that category.

لقد قمت بتشغيل Sidekiq، لكنني لا أعرف كيفية تشغيل الوظيفة (أنا جديد في Ruby)، حيث أواجه الخطأ التالي:

vagrant@discourse:/vagrant/app/jobs/scheduled$ ruby category_stats.rb
category_stats.rb:3:in \u003cmodule:Jobs\u003e': uninitialized constant Jobs::Scheduled (NameError) from category_stats.rb:1:in \u003cmain\u003e’

لدى هذا المستخدم صلاحيات كافية، ويمكنني تزويدك بحساب الدخول أيضًا.