Giter VIP home page Giter VIP logo

Comments (10)

nishadobe avatar nishadobe commented on September 25, 2024 1

Thanks it works!

from personality-insights-nodejs.

neil-boyette-ibm avatar neil-boyette-ibm commented on September 25, 2024

Some general questions; did you follow all the instructions? Configured the right credentials and instances of the services in BlueMix etc?

Without access to your code, or a more specific error, its a bit hard for me to give you more specifics (apart from the general and unhelpful that it works for us :-) ).

from personality-insights-nodejs.

nishadobe avatar nishadobe commented on September 25, 2024

Hey Neil.

Thanks for your reply. I just deployed the code via bluemix and I have used my code. Can you please let me know how to get a specific code. IF you see the link I provided the analyse button is disabled for some reason.

Thanks.

from personality-insights-nodejs.

nishadobe avatar nishadobe commented on September 25, 2024

This is what I have in code.

---
declared-services:
  personality-insights-service:
    label: personality_insights
    plan: tiered
applications:
  name: personality-insights-nodejs-pithia-2246
  command: npm start
  path: .
  memory: 512M
  instances: 1
  services:
    - personality-insights-service
  env:
    NODE_ENV: production
  host: personality-insights-nodejs-pithia-2246

from personality-insights-nodejs.

AlexandrosPas avatar AlexandrosPas commented on September 25, 2024

Show us your credentials.json file:
Without the actual credentials or keys

{
  "personality_insights" : {
    "password": "<password>",
    "username": "<username>",
    "version": "v2",
    "headers": {
      "X-Watson-Learning-Opt-Out": 1
    }
  },

  "twitter" : {
    "application": {
      "consumer_key" : "<consumer_key>",
      "consumer_secret" : "<consumer_secret>"
    },
    "credentials": []
  }
}

from personality-insights-nodejs.

PhilippeComte avatar PhilippeComte commented on September 25, 2024

Hello ,
getting the same issue trying to run the app locally
The install thru npm install shows error but I don't know whether they are critical or not
Does it work for you on local ?

PCMacBook-Pro:personality-insights-nodejs-master philippecomte$ npm install
npm WARN package.json Dependency 'dotenv' exists in both dependencies and devDependencies, using 'dotenv@^2.0.0' from dependencies
npm WARN deprecated [email protected]: WARNING: This project has been renamed to twitter-crawler. Install using twitter-crawler instead.
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

[email protected] install /Users/philippecomte/Documents/ALGE2016/WATSON_SERVICES_BLUEMIX/PersonalityInsights/personality-insights-nodejs-master/node_modules/watson-developer-cloud/node_modules/websocket
(node-gyp rebuild 2> builderror.log) || (exit 0)

CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/bufferutil.node
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.

[email protected] install /Users/philippecomte/Documents/ALGE2016/WATSON_SERVICES_BLUEMIX/PersonalityInsights/personality-insights-nodejs-master/node_modules/codecov/node_modules/execSync
node install.js

[execsync v1.0.2] Attempting to compile native extensions.
[execSync v1.0.2]
Native code compile failed!!

[email protected] preinstall /Users/philippecomte/Documents/ALGE2016/WATSON_SERVICES_BLUEMIX/PersonalityInsights/personality-insights-nodejs-master/node_modules/i18n/node_modules/messageformat/node_modules/watchr/node_modules/extendr/node_modules/typechecker
node ./cyclic.js

[email protected] preinstall /Users/philippecomte/Documents/ALGE2016/WATSON_SERVICES_BLUEMIX/PersonalityInsights/personality-insights-nodejs-master/node_modules/i18n/node_modules/messageformat/node_modules/watchr/node_modules/extract-opts/node_modules/typechecker
node ./cyclic.js

from personality-insights-nodejs.

AlexandrosPas avatar AlexandrosPas commented on September 25, 2024

I've found the issue with the disabled analyze button. I will explain:

From what I understand captcha made sunburst crash from Issue#107 but the developers never revoked to the last stable version. So for now search for the index.ejs file in the /views folder.

Find the lines that build the buttons, and delete the disabled notation
<button type="submit" disabled class="base--button input--submit-button1">Analyze</button>

I'm trying to fix the captcha issue but this will do for now.

from personality-insights-nodejs.

nishadobe avatar nishadobe commented on September 25, 2024

I am trying to edit and save but getting this message.

"while parsing a block mapping; expected , but found BlockMappingStart; in 'reader', line 8, column 3: command: npm start ^"

from personality-insights-nodejs.

nishadobe avatar nishadobe commented on September 25, 2024

Getting captcha error now
screen shot 2016-10-14 at 11 10 55

from personality-insights-nodejs.

AlexandrosPas avatar AlexandrosPas commented on September 25, 2024

It's impossible that your button isn't still activated after what i suggested. (from what i see thanks to your screenshot)
In order to edit the index.ejs use any local editor (Notepad++). Save the file and redo the steps of Cloud Foundry to push your project again in Bluemix.

Other suggestion (worked for me):
1)Download the master code from github.
2)Replace the files index.ejs and header.ejs which you will download (or copy-paste) from germanattanasio-patch-1 branch (not master that is).
3)Open a cmd and navigate through your project folder (where manifest.yml file is located).
4)Login to Bluemix and push the project (as described in the README.MD)

Hope this helps

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.