Comments (8)
@jaxxstorm have you executed db migrations? i.e. npm run up
from teamchatviz.
Ah, no, let me try that.
from teamchatviz.
After running npm run up
QueryResultError: 0
at QueryResultError.Error (native)
at new QueryResultError (/Users/Lee/github/teamchatviz/node_modules/pg-promise/lib/errors/queryResult.js:125:22)
at [object Object].<anonymous> (/Users/Lee/github/teamchatviz/node_modules/pg-promise/lib/query.js:172:41)
at [object Object].Query.handleReadyForQuery (/Users/Lee/github/teamchatviz/node_modules/pg-promise/node_modules/pg/lib/query.js:106:10)
at [object Object].<anonymous> (/Users/Lee/github/teamchatviz/node_modules/pg-promise/node_modules/pg/lib/client.js:163:19)
at emitOne (events.js:95:20)
at [object Object].emit (events.js:182:7)
at Socket.<anonymous> (/Users/Lee/github/teamchatviz/node_modules/pg-promise/node_modules/pg/lib/connection.js:109:12)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at readableAddChunk (_stream_readable.js:147:16)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:523:20)
from teamchatviz.
@jaxxstorm does the error happen when your run migrations? or after the migrations were successfully executed? What are your steps exactly to get this error?
from teamchatviz.
This happens after npm start
I'm running postgres in a docker container and then trying to connect to localhost:5432. All the DB perms seem to be setup correctly.
from teamchatviz.
Which version of Postgres are your running? And npm run up
was without errors? I will try with docker tomorrow. Can you give me the exact command you use to start the Postgresql container?
from teamchatviz.
QueryResultError is only thrown when the returned result doesn't match the method called 😉
from teamchatviz.
@vitaly-t thanks, that is the reason.
@jaxxstorm I have checked out a project anew and it was fine for me. Here is what I do:
- npm run up
- npm start
- open http://localhost:3333/
- click Add to Slack button and wait till the data is imported (the data import is not reflected in the UI)
- explore the charts
I have got the following .env config here:
PORT=3333
SLACK_CLIENT_ID="realId"
SLACK_CLIENT_SECRET="realSecret"
DATABASE_URL="postgres://teamchatviz2:teamchatviz@localhost/teamchatviz2"
PUBLIC="false"
ANONYMIZE="true"
SESSION_SECRET="secret"
But I also think I found what error you have. You probably run it with PUBLIC=true which will turn your installation into a demo instance where you cannot import the data and cannot log in. There if the database is empty you will get an error message because there is no user in it to play the role of the demo user. Generally you should turn on PUBLIC only after your imported your demo data with ANONYMIZE=true. For internal use ANONYMIZE=false and PUBLIC=false should be used.
I will add more explanation to this and handle that error better.
from teamchatviz.
Related Issues (20)
- [Frontend] Bug in FF on the cluster charts
- [Frontend] Emojis on Ubuntu have completely different style
- [Frontend] IE explorer missing system-polyfills.js in the build
- [Frontend] people land map - small and big person icons have to be identical HOT 1
- [Frontend] maps - panning is not working correctly once user zoomed in
- [Frontend] Implement tooltips for Treemaps
- Application Offline for Maintenance HOT 10
- document database creation step in postgres in README.md HOT 5
- Created a docker image HOT 2
- RocketChat integration HOT 5
- pg-promise HOT 2
- Creating Heroku App Does Not Work HOT 2
- Unable to add app to Slack HOT 1
- just channels and users names loading, no data !? HOT 1
- data not updating HOT 1
- Heroku is not being deployed correctly :( HOT 2
- Can't open App on Heroku
- Application Error
- Is it possible/what would be the best way to embed these visualizations into a website?
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 teamchatviz.