Skip to content

Axios Error 400 #55

@ray-1337

Description

@ray-1337

I kept experiencing this error:
Error: Request failed with status code 400

const Clarifai = require('clarifai')

const clarifai = new Clarifai.App({
  apiKey: "[]"
});

function log(d) {
  try {
    console.log(JSON.stringify(d, null, 2));
  } catch (e) {
    console.log(d);
  }
}

// Prediction on general model using video API
clarifai.models.predict(Clarifai.GENERAL_MODEL, 'https://gblobscdn.gitbook.com/spaces%2F-LisemUaXxC3S7Kk9xFz%2Favatar.png')
  .then(log)
  .catch(log);

Version: 2.9.1
Node.js: v14.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions