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
81 views Asked by Joseph Polimeni At
1
There are 1 answers
Related Questions in IBM-WATSON
- Update a bearer token in a watsonx extension
- How can I add a new Facet from the beginning in IBM WCA (IBM Watson)?
- pip installing ibm_watson_machine_learning module fails
- Call watsonx.ai prompt in watson assistant
- Where do I find my credentials for using watsonx.ai
- IBM NeuralSeek API Filter
- CS0246 Error while installing IBM Watson SDK for Unity
- Send a message after the user stops responding through WatsonX Assistant
- LIME explanation with Watson Assistant on Python
- i am creating a chat bot which will create an email template by capturing some Details in the Slots section and then fill it in the text paraghraph
- Watson Assistant: Use 'last dialog node' as condition
- Access Watson NLP Assets through watsonx notebook - getting the project access token
- IBM Watson STT + MQTT weird behaviour
- watsonx: using notebook for data collection - how can I save it locally so I can use it for AutoAI?
- Python Code Connecting to Hadoop Hive Kerberos Keytab through watson studio
Related Questions in NL-CLASSIFIER
- Convert from Watson NLC to NLU
- IBM Watson NLC - How to retrain an existing classifier in Java SDK
- IBM Cloud-Watson NLC - TypeError: __init__() got an unexpected keyword argument 'iam_apikey'
- IBM Watson NLC - Training with more than 20,000 text examples?
- Watson Classifier curl authentication failing with userid and password
- How to resolve entitlement error in ibm watson nlc?
- Why are there different size limitations in Watson NLC for training (1024 chars) and for production (2048 chars)?
- I cannot open NLC Toolkit - Invalid authorization code
- IBM Watson nl-c training time
- IBM Watson - Natural Language Classifier service (Java SDK) - deleteClassifier() method does not delete the classifier
- NLC training data loaded via the api is not visible from the toolkit
- Natural language classifier returns classifications for untrained items
- Python NLTK Classifier.train(trainfeats)... ValueError: need more than 1 value to unpack
- How can I add frequency in nltk naivebayes classifier?
- how export .csv file for Natural Language Classifier (NLC) Watson service?
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?
Popular Tags
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)
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.