קטגוריות API

סיכום מבוסס בינה מלאכותית

itd-john is having trouble with the Discourse API documentation, specifically with a GET request to /categories.json that returns a 500 error. pfaffman suggests that the issue might be with itd-john’s development environment, as the API call works on meta.discourse.org. itd-john clarifies that they are simply trying to call the API as documented using Postman. pfaffman suspects the problem might be with Postman and asks if itd-john can load the page in their browser.

Is it just me or is all of the documentation either out of date or not accurate? For instance, yet another hurdle with this software is getting a basic API query to work. Here’s the docs I’m referring to and the query that returns a 500 error: http://localhost:4200/categories.json. The GET request in the docs shows this query as an example. Any thoughts on how to stop running into hurdles like every time I turn around? If people are going to use this in a production environment, we’re going to need a better way to get familiar with the software other than duck-duck-goosing through repos and pseudo-docs.

This works: https://meta.discourse.org/categories.json

What error do you see in the logs? Does your site work in a browser? If GETting /categories.json` doesn’t work then something’s wrong with your development environment, I’d guess.

We’ll need more info about what errors you see in the terminal and how you installed.

What are you trying to do?

אני לא מנסה לעשות שום דבר מיוחד, רק לקרוא ל-API כפי שהוא כתוב בתיעוד דרך Postman.

האם אתה יכול לטעון את הדף בדפדפן שלך?
ההערכה שלי היא שזו בעיה עם Postman