Encountering Url error , while configuring the basic Zetta server.

34 views
Skip to first unread message

kartikeya sharma

unread,
Jun 9, 2016, 1:55:18 AM6/9/16
to zetta-discuss
Hi ,
I configured a basic server in Zetta with name and port number.

When i run the server , at console i am able to see the server running. But when i do the curl http://localhost:1337/ , the app crashes with an error like this 

E:\workspace\NodePractice\IOT\Zetta\node_modules\zetta\lib\api_resources\root.js:231
        href: env.helpers.url.current()
                         ^

TypeError: Cannot read property 'url' of undefined
    at RootResource._renderRoot (E:\workspace\NodePractice\IOT\Zetta\node_modules\zetta\lib\api_resources\root.js:231:26)
    at RootResource.list (E:\workspace\NodePractice\IOT\Zetta\node_modules\zetta\lib\api_resources\root.js:174:10)
    at null.<anonymous> (E:\workspace\NodePractice\IOT\Zetta\node_modules\zetta\node_modules\titan\node_modules\argo-resource\resource.js:307:17)
    at bound (domain.js:250:14)
    at runBound (domain.js:263:12)
    at null.<anonymous> (E:\workspace\NodePractice\IOT\Zetta\node_modules\zetta\node_modules\titan\node_modules\argo-resource\node_modules\pipeworks\pipeworks.js:72:17)
    at null.<anonymous> (E:\workspace\NodePractice\IOT\Zetta\node_modules\zetta\node_modules\titan\node_modules\argo-resource\resource.js:264:11)
    at bound (domain.js:250:14)
    at runBound (domain.js:263:12)
    at null.pipeline (E:\workspace\NodePractice\IOT\Zetta\node_modules\zetta\node_modules\titan\node_modules\argo-resource\node_modules\pipeworks\pipeworks.js:72:17)


Kevin Swiber

unread,
Jun 9, 2016, 2:35:05 AM6/9/16
to kartikeya sharma, zetta-discuss
Hi there,

This looks like a problem in Zetta v0.33.0, which appears to be growing a little stale.  We are getting very close to releasing v1.0.0, which is much more stable.  If you try running `npm install zetta@latest`, you should get v1.0.0-beta.7.  That should fix the problem.  Please let me know if it persists.

Thanks,

Kevin

--
You received this message because you are subscribed to the Google Groups "zetta-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zetta-discus...@googlegroups.com.
To post to this group, send email to zetta-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zetta-discuss/43a05ffc-7698-4539-ac2c-55304efbdd62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kartikeya sharma

unread,
Jun 9, 2016, 2:45:40 AM6/9/16
to zetta-discuss, goga.th...@gmail.com
Hi Kevin , Let me try i will keep you posted . 

Jacky Deng

unread,
Apr 12, 2017, 12:35:27 AM4/12/17
to zetta-discuss, goga.th...@gmail.com
I just tried with Zetta 1.4.0, and the issue is fixed. However, it can work with node 6.9.1 but fail with the latest node version 7.8.

Thanks,
Jacky
Reply all
Reply to author
Forward
0 new messages