Git Product home page Git Product logo

river4's Issues

fspath requires trailing slash

I used back ticks to set my fspath environment variable...

 export fspath=`pwd`

This results in a path without a trailing slash, something like...

/Users/davewiner/river4data

Running with such a path results in an error:

river4.js:1216
        for (var i = 0; i < list.length; i++) {
                                ^
TypeError: Cannot read property 'length' of undefined
    at .../river4/river4.js:1216:27
    at Object.oncomplete (fs.js:107:15)

I've not dug in but I'm guessing the path to the lists dir is generated something like: fspath + "lists".

Better would be to use path.join.

River Displayer doesn't work via https

Hi all,
I just started to toy around with river4 today. Setup went basically smooth, but, when opening the river displayer through the Amazon S3 management tool, I got a broken view:

image

This is because Amazon by default opens the index.html through https (https://s3.amazonaws.com/river4-michael-kamleitner/index.html), and the displayers tries to include JS/CSS through insecure http (check the javascript console on chrome inspector or similar for details).

Should be easy to fix, once the domains fargo.io & static.newsriver.org support https (they don't, right now). In the meantime this is an issue potential newbies (like me) might fall over, so a notice in the README might be good!

Initial data required? loadServerData: /home/jcb/river4data/data/prefsAndStats.json

I'm setting up river4 on a CentOS 5 Linux server that runs node v0.12.2. fspath is set and river4data exists in the home directory. I'm running node river4.js and I get:

River4 v0.109 running on port 1337.

Running from the filesystem: /home/jcb/river4data/

loadServerData: /home/jcb/river4data/data/prefsAndStats.json
parseJson, error with S3 file: /home/jcb/river4data/data/prefsAndStats.json, Unexpected end of input
parseJson, error with S3 file: /home/jcb/river4data/data/feedsStats.json, Unexpected end of input
loadTodaysRiver: /home/jcb/river4data/data/calendar/2015/04/28.json

everyMinute: 20:19:29, 0 items on the task queue, 0 sockets open, undefined feeds.
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: listen EADDRINUSE
    at exports._errnoException (util.js:746:11)
    at Server._listen2 (net.js:1146:14)
    at listen (net.js:1172:10)
    at Server.listen (net.js:1257:5)
    at /var/www/virtual/jcb/html/river/river4.js:2836:39
    at /var/www/virtual/jcb/html/river/river4.js:1521:4
    at /var/www/virtual/jcb/html/river/river4.js:1431:3
    at fs.js:263:20
    at FSReqWrap.oncomplete (fs.js:95:15)

Before that I had an error ENOENT error and it seemed that those files here were needed:
https://github.com/scripting/river4/blob/master/river4.js#L2815-L2823
So I created all those files manually but now I get parseJson errors because those files are empty of course.

What's going on here? The instructions say that only opml files in river4data/lists/ are required (I use the demo files). Shouldn't river4data/data be populated automatically by the server?

No index.html being copied for River4 installs using S3 for storage

Adam Monago commented on the River4 list that his River4 install using S3 did not save index.html to S3 storage. It appears that the calls to copyIndexFile in river4.js were removed in the first commit on 0.117. These calls should be restored so that River4 users using S3 storage will be able to publish a working River4 site using S3.

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.