Comments (10)
Thanks it works!
from personality-insights-nodejs.
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.
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.
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.
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.
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.
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.
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.
from personality-insights-nodejs.
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)
- Component js Support for V3 api HOT 2
- Different results on Demo and via API calls HOT 13
- App failed to deploy (unless I specified env in UI) HOT 2
- npm ERR with npm 5.4.0 HOT 1
- Localize for Korean
- Deployment Tracker Service is discontinued HOT 1
- Handle error conditions for twitter accounts that don't have enough tweets in a supported language HOT 6
- Bug: Twitter OAuth Returns 500 Error after clicking "Connect to Twitter Account" button HOT 7
- Label Correction Needed (In Japanese) - FARIDYU - should be Japanese (not Korean)
- Add GDPR Language to Stand Alone Demo Pages HOT 2
- How does the API generates summaries of personality insights? HOT 1
- Application breaking when trying to analyze Twitter personality HOT 3
- Application returning error when analyzing Twitter personality HOT 1
- Remove links to `.shtml` pages HOT 1
- ReactJS friendly version? HOT 2
- "Sorry, your language is either unsupported or we did not find sufficient words in your input to analyze." HOT 13
- I can not log in on my twitter account HOT 2
- 64,000 copies of the single word "and", outputs full personality - how is this possible? HOT 1
- OAuthStrategy requires a consumerKey option HOT 1
- Does personality insight API support simplified Chinese? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from personality-insights-nodejs.