I followed the instructions and retrieved the credentials for https://gateway.watsonplatform.net/natural-language-classifier/api - from the resource list I was able to retrieve my Username and Password. I have a trained classifier that I can use with Watson Studio. The classifier I retrieved from the Watson Services page for my project is: befb8ax501-nlc-1441. I then try to test out a simple test - curl -u "{userid}":"{password}" "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/befb8ax501-nlc-1441" and I receive {"code":401, "error": "Unauthorized"} This seems very basic and simple, but I can't seem to get this to work. I am using curl because the python program I wrote (which worked a few months ago with a different password and service id) doesn't seem to be working. I can perform operations with the web interface so the service is working - but I can't seem to call it. Is there a way I can test my username and password? Am I using the correct format to make the call?
Watson Classifier curl authentication failing with userid and password
79 Views Asked by Joseph Polimeni At
1
There are 1 best solutions below
Related Questions in IBM-WATSON
- Can any one help me in storing the json output of personality insights API to csv using Python?
- How to gain authorization to perform requested action, specifically create an instance of a service in Bluemix?
- What file formats are supported by Watson Speech to Text in Bluemix
- We are tring to configure for the first time Text To Speech bt Watson in Node Red with no luck
- Can one get multiple results from one API call in IBM Watson?
- IBM BigInsights (IBM Hadoop) vs IBM Watson
- IBM Watson Speech to Text API with node. How to output to DOM?
- How to instruct IBM Watson Discovery about the format of my documents?
- IBM Watson speech to text for Android: NoClassDefFoundError
- Configuring Watson for multiples intents?
- Using watson Speech to Text from a browser with websockets (Live detection)
- Can I upload a zip file with htmls or a zip file with json files using the Web Interface of Watson Retrieve and Rank service?
- Watson knowledge studio: how to teach my model to get recipe name?
- error in java package after add watson developer cloud library
- Error: The app has not been configured with a WORKSPACE_ID environment variable
Related Questions in NL-CLASSIFIER
- Why are there different size limitations in Watson NLC for training (1024 chars) and for production (2048 chars)?
- How to create a NLC in watson
- watson natural language classifier - Getting 415 FAIL when trying to create a classifier with training_data
- How do I manage multiple training sets using the Watson NLC Toolkit
- Re-training Approach for NLC or R&R
- How to get a trained Watson natural language classifier to NOT pick up a class?
- IBM Watson NLC - How to retrain an existing classifier in Java SDK
- Delta component doesnt show in weight learning rule of sigmoid activation MLP
- creating NLC classifier on bluemix
- curl command for NLC tutorial
- How to train natural language classifier using Fluent
- I cannot open NLC Toolkit - Invalid authorization code
- Watson Classifier curl authentication failing with userid and password
- Trouble Running AlchemyAPI Natural Language Classifier APP in Bluemix
- Bluemix - Natural Language Classifier credentials in the Questions on classifier demo
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Open your classifier and then click on your service.
This will open service page, then go under service credentials, now if you see key like "apsx-data". Now thats the service credentials that the watson studio test screen uses.
If you click apsx-data, it will expand, you can use the credential. If this credential, doesn't try to create new credential and try using that. If this still doesn't work, you should open a ticket since it may be specific to your service.