API request to /api/v1/models/ returning HTML format instead of JSON #8733
Closed
VicentePina7210
started this conversation in
Issues
Replies: 2 comments 2 replies
-
|
it need a final "/", try with: |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Resolved, thanks to @rgaricano |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
When trying to retrieve the JSON response data that is on the api/v1/models url, I am getting a "200 ok" response but it is only returning HTML.
I know the token that is being used is correct. here is my JavaScript, the code hits the else statement for "no model data found " .
async getKnowledge() {
await this.authenticateBot();
const knowledgeList = [];
try {
// Fetch the model data from the external API
const response = await axios.get("http://205.167.205.173:8080/api/v1/models", {
headers: {
Authorization:
Bearer ${this.token},content_type: 'application/json',
}
});
}
here is the response I receive
Raw Response Data: <!doctype html>
Beta Was this translation helpful? Give feedback.
All reactions