bwbwbwbw / ingress-exporter

Export all portals, links, fields and system broadcasts in a specific area.
MIT License
84 stars 43 forks source link

Fail grunt parsing #4

Closed vittore closed 10 years ago

vittore commented 10 years ago

Hi,

sometimes when I do grunt I get this compilation error:

Running "copy:project" (copy) task
Copied 2 files

Running "coffee:project" (coffee) task

Running "cson:project" (cson) task
Parsing config.cson failed.
>> Syntax error on line 49, column 0: unexpected '\u0000' (\u0000)
>> 46 :     Options:
>> 47 :
>> 48 :         safe:       true
>> 49 :
>> ^^ :~^
Warning: Task "cson:project" failed. Use --force to continue.

This is my config.cson:


Auth:

    # You could fill this field via copying from:
    #     Chrome Dev Tools -> Network -> (select a non-static request entity) ->
    #     Request Headers -> Cookie
    # Please fetch the cookie from non-SSL ingress/intel site.
    # Otherwise it won't work currently.
    CookieRaw: '.....my cookie....;'

ZoomLevel: 14

Region: [[12.30743408203125,45.88714049635727],[12.85675048828125,46.021045392202666],[12.582435607910156,45.94834486134022],[12.719764709472656,45.98008480803993]]

Request:

    UserAgent:     'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36'
    MaxParallel:   10
    MinIntervalMS: 100  # Too fast requesting would get IP banned

Tile:

    MaxFailRetry:  3    # server responses a failure
    MaxErrorRetry: 3    # network errors, etc

TileBucket:

    Max: 4  # tiles may get TIMEOUT if larger than 4
    Min: 4

Chat:

    SplitTimespanMS:        3*60*60*1000   # split tasks by 3hrs
    TraceTimespanMS:    10*24*60*60*1000   # new task: trace 10 days
    FetchItemCount:     300

PlayerLookup:

    Max: 15

Database:

    ConnectString: 'mongodb://localhost:27017/ingress'

    MaxParallel:    10

    Options:

        safe:       true

I haven't skill in cson. May you help me?

v.

breezewish commented 10 years ago

Hello, seems that there is an invisible char at the end of your cson file. What's your text editor? Try to remove the last empty line.

vittore commented 10 years ago

Hi,

I'm using vi into a debian7. I think there are some mistakes into my configuration because if I edit build/config.json adding a simple 'x' to cookie string I get an error. Now try to re-setup node.js

v.

breezewish commented 10 years ago

Try vim :-)

vittore commented 10 years ago

Bad node.js version. Installing later go right.

Thanks. v