Clarifai / clarifai-javascript

Official Clarifai JavaScript client for browsers and node.js
https://docs.clarifai.com
Other
351 stars 81 forks source link

TrainModel is throwing 'Bad Request' error #12

Closed abhagupta closed 7 years ago

abhagupta commented 7 years ago

Hi, I am trying this API for DevelopersWeek Hackathon tomorrow . I am looking at the docs in your https://developer.clarifai.com/quick-start/ and the example API for 'Train' is giving a 'Bad Request' error. Any ideas? All other , 'predict', 'search' are running fine. So I am assuming its not the Developer API Key issue.

maxcell commented 7 years ago

Howdy!

If you followed the JavaScript Code, it might have executed things out of order just due to async calls. I followed the code right after this, and saw everything was working fine. However, to see if your model is trained, you can look at the Preview UI. If you are seeing that nice blue dot by your model name 'pets' in this case, it should be :+1:.

You should be able to call the predictModel function again and see a response back. Let me know if anything changes!

maxcell commented 7 years ago

Due to some refactoring, this was resolved back then. So, for now, I am going to go ahead and close this 😄