Getting Started with Foxx and ArangoDB on Windows - "errorMessage": "Unknown path"

Yes, the problem is I don't have a Mac Pro;) And the demo is done on a Mac.

I can start Hello World application, load it through the web interface, and access it via:

http://localhost:8529/_db/Test1/hello-foxx

      

But I can't get other demos to load. For example oauth2:

http://localhost:8529/_db/Test1/oauth2
{"error":true,"code":404,"errorNum":404,"errorMessage":"unknown path 'oauth2'"}

      

UPDATE - I am also new to server side Javascript. While playing with a simple working demo, I created an error in my app.js file. The output in the browser resulted in my error above 404. It would seem that if app.js fails and cannot create an output file, then logically the browser cannot find it. So it might not be a "mount" or filesystem error, but a JS error.

+3


source to share


1 answer


Maybe this can help you. Start arangodb in debug mode:

arangod -c "D: \ Tools \ ArangoDB 2.2.5 \ etc \ arangodb \ arangod.conf" --javascript.dev-app-path "D: \ Tools \ ArangoDB 2.2.5 \ www"

Take a look at the console output when you get the error. This is an internal error of the FOXX application returning 404



2014-11-07T05: 07: 00Z [4928] INFO ArangoDB (version 2.2.5 [win64]) is business ready. Enjoy!
2014-11-07T05: 21: 47Z [4928] ERROR Can't compute Foxx routes app: SyntaxError: JavaScript exception in file '(snippet)' at 11,19: SyntaxError: Unexpected token * 2014-11-07T05: 21: 47Z [ 4928] ERROR! \ X09 \ x09if (fuzzyType! = * ||! $ (Fts) .All (function (ft) {return typeof (fuzzy [ft]) ==
2014-11-07T05: 21: 47Z [4928] ERROR! ^
2014-11-07T05: 21: 47Z [4928] ERROR stacktrace: SyntaxError: Unexpected token *
2014-11-07T05: 21: 47Z [4928] ERROR in createModule (Generic / bootstrap / modules.js: 492: 20 )
2014-11-07T05: 21: 47Z [4928] ERROR when requireModuleFrom (Generic / bootstrap / modules.js: 645: 14)
2014-11-07T05: 21: 47Z [4928] ERROR in requirePackage (Generic / bootstrap / modules.js: 805: 21)
2014-11-07T05: 21: 47Z [4928] ERROR in [object Object] .Module.require (General / bootstraps / modules.js: 1206: 21)

As you can see, there is a bug in the FOXX code. Once corrected, this is the normal output from the query:

2014-11-07T05:23:45Z [4928] INFO /dev/FreeTextEngine, incoming request from 127.0.0.1: GET http://0.0.0.0:8529/dev/FreeTextEngine/create/hotelall?type=* 
2014-11-07T05:23:45Z [4928] INFO /dev/FreeTextEngine, outgoing response with status undefined of type application/json, body length: 125

      

+2


source







All Articles