Giter VIP home page Giter VIP logo

Comments (13)

mamoonraja avatar mamoonraja commented on July 30, 2024 1

Comment out PERSONALITY_INSIGHTS_IAM_APIKEY=<iam apikey> in .env file and it should work. The issue is that API confuses it to be an IAM instance even though username/password are provided. Let me know if that works for you, I will update the instructions.

from personality-insights-nodejs.

mamoonraja avatar mamoonraja commented on July 30, 2024

My guess is that you are using IAM instance. Try removing services field from manifest.yml:

---
applications:
- name: personality-insights-livedemo
  command: npm start
  path: .
  memory: 256M
  instances: 1

from personality-insights-nodejs.

maxtoulouse31 avatar maxtoulouse31 commented on July 30, 2024

Thank you for getting back to me so quickly. Unfortunately, while allowing me to successfully deploy the app, when I attempt to run it (both with placeholder text and other), I still get:

"Sorry, your language is either unsupported or we did not find sufficient words in your input to analyze."

from personality-insights-nodejs.

jeffpk62 avatar jeffpk62 commented on July 30, 2024

@maxtoulouse31 It may be the case that your input text does not have enough words. Can you check whether your text meets the guidelines described in this section: https://console.bluemix.net/docs/services/personality-insights/input.html#sufficient.

from personality-insights-nodejs.

mamoonraja avatar mamoonraja commented on July 30, 2024

Also, make sure you have url and apikey both setup correctly in .env file. See https://github.com/watson-developer-cloud/personality-insights-nodejs#configuring-the-application.

from personality-insights-nodejs.

mamoonraja avatar mamoonraja commented on July 30, 2024

I was able to re-create the error, by not having the URL setup correctly in .env.

from personality-insights-nodejs.

maxtoulouse31 avatar maxtoulouse31 commented on July 30, 2024

I see

When I check the .env file, the details are correctly copied across from Credentials section of the console.

I do however notice a syntax difference in the URL's:

In the guide, they are in a location-specific format:
https://gateway-syd.watsonplatform.net/personality-insights/api

However in the credentials section of the console, I am given what looks like location-agnostic URL:
https://gateway.watsonplatform.net/personality-insights/api

(For reference, the org is set at location GB)

Could this have anything to do with this?

I tried modifying the url to:
https://gateway-gb.watsonplatform.net/personality-insights/api

This did not work

from personality-insights-nodejs.

mamoonraja avatar mamoonraja commented on July 30, 2024

You should be fine if you're using the credentials shown in the credentials section of the console.

from personality-insights-nodejs.

mamoonraja avatar mamoonraja commented on July 30, 2024

Do you see the same error when running in localhost?

from personality-insights-nodejs.

maxtoulouse31 avatar maxtoulouse31 commented on July 30, 2024

I do unfortunately

from personality-insights-nodejs.

maxtoulouse31 avatar maxtoulouse31 commented on July 30, 2024

Thank you @mamoonraja - it now works

from personality-insights-nodejs.

mamoonraja avatar mamoonraja commented on July 30, 2024

You're welcome! sorry for the inconvenience. We will update the instructions :)

from personality-insights-nodejs.

watson-github-bot avatar watson-github-bot commented on July 30, 2024

🎉 This issue has been resolved in version 1.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

from personality-insights-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.