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

Axios Error 400 #55

Open
ray-1337 opened this issue Oct 28, 2020 · 0 comments
Open

Axios Error 400 #55

ray-1337 opened this issue Oct 28, 2020 · 0 comments

Comments

@ray-1337
Copy link

ray-1337 commented Oct 28, 2020

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

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

No branches or pull requests

1 participant