You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by Joyce Babu <jo...@joycebabu.com> on 2018/08/06 20:46:10 UTC

context.js and context.json are returning 404

 Hello,

I have installed unomi v1.2.0 in a docker container. But when I access
http://localhost:8181/context.js, the server is responding with a 404
error. http://localhost:8181/index.html is working correctly.

https://github.com/ennexa/docker-unomi

What did I do wrong?

Thanks & Regards,
Joyce Babu

Re: context.js and context.json are returning 404

Posted by Diogo Munaro Vieira <di...@corp.globo.com.INVALID>.
You need to send a *sessionId* because an user is identified by it's
session and :

http://localhost:8181/context.json?sessionId=1234

When you send a sessionId, there is a cookie called *context-profile-id*
that is the user id created by Unomi for that user.

I hope it helps

Em ter, 7 de ago de 2018 às 09:52, Damien GAILLARD <dg...@jahia.com>
escreveu:

> Hello,
>
> Did you start unomi with the command unomi:start or by adding the
> parameter:
>
> export KARAF_OPTS="-Dunomi.autoStart=true"
>
> in your setenv.sh
>
> It's explain in the 5 min quick start here:
> http://unomi.incubator.apache.org/
>
> Let me know if this doesn't solve your problem
>
> Cheers
>
> Damien
>
>
> On Mon, Aug 6, 2018 at 10:46 PM Joyce Babu <jo...@joycebabu.com> wrote:
>
> >  Hello,
> >
> > I have installed unomi v1.2.0 in a docker container. But when I access
> > http://localhost:8181/context.js, the server is responding with a 404
> > error. http://localhost:8181/index.html is working correctly.
> >
> > https://github.com/ennexa/docker-unomi
> >
> > What did I do wrong?
> >
> > Thanks & Regards,
> > Joyce Babu
> >
>
>
> --
> Damien GAILLARD
> Software Developer
> <
> https://www.jahia.com/cms/render/default/en/sites/jahiacom/home/employees/grid-layout/jahia-employee/GaillardDamien.signature.html.ajax
> >
> <
> https://www.jahia.com/cms/render/default/en/sites/jahiacom/home/employees/grid-layout/jahia-employee/GaillardDamien.signature.html.ajax
> >
> 8 rue du sentier | 75002 | France
> <
> https://www.jahia.com/cms/render/default/en/sites/jahiacom/home/employees/grid-layout/jahia-employee/GaillardDamien.signature.html.ajax
> >
> <
> https://www.jahia.com/cms/render/default/en/sites/jahiacom/home/employees/grid-layout/jahia-employee/GaillardDamien.signature.html.ajax
> >
> jahia.com <http://www.jahia.com/>
> SKYPE | TWITTER <https://twitter.com/> | VCARD
> <http://www.jahia.com/vcard/GaillardDamien.vcf>
>
> > JAHIA <http://www.jahia.com/> empowers organizations to create
> sophisticated websites that drive their business growth
>


-- 
Diogo Munaro Vieira

-------
Big Data
Ramal: 6866

http://diogomunaro.com
(21) 98656-0745

Re: context.js and context.json are returning 404

Posted by Damien GAILLARD <dg...@jahia.com>.
Hello,

Did you start unomi with the command unomi:start or by adding the parameter:

export KARAF_OPTS="-Dunomi.autoStart=true"

in your setenv.sh

It's explain in the 5 min quick start here:
http://unomi.incubator.apache.org/

Let me know if this doesn't solve your problem

Cheers

Damien


On Mon, Aug 6, 2018 at 10:46 PM Joyce Babu <jo...@joycebabu.com> wrote:

>  Hello,
>
> I have installed unomi v1.2.0 in a docker container. But when I access
> http://localhost:8181/context.js, the server is responding with a 404
> error. http://localhost:8181/index.html is working correctly.
>
> https://github.com/ennexa/docker-unomi
>
> What did I do wrong?
>
> Thanks & Regards,
> Joyce Babu
>


-- 
Damien GAILLARD
Software Developer
<https://www.jahia.com/cms/render/default/en/sites/jahiacom/home/employees/grid-layout/jahia-employee/GaillardDamien.signature.html.ajax>
<https://www.jahia.com/cms/render/default/en/sites/jahiacom/home/employees/grid-layout/jahia-employee/GaillardDamien.signature.html.ajax>
8 rue du sentier | 75002 | France
<https://www.jahia.com/cms/render/default/en/sites/jahiacom/home/employees/grid-layout/jahia-employee/GaillardDamien.signature.html.ajax>
<https://www.jahia.com/cms/render/default/en/sites/jahiacom/home/employees/grid-layout/jahia-employee/GaillardDamien.signature.html.ajax>
jahia.com <http://www.jahia.com/>
SKYPE | TWITTER <https://twitter.com/> | VCARD
<http://www.jahia.com/vcard/GaillardDamien.vcf>

> JAHIA <http://www.jahia.com/> empowers organizations to create
sophisticated websites that drive their business growth