Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Invalid cookie value in STH log #418

Open
osfrance opened this issue Aug 11, 2017 · 0 comments
Open

Error Invalid cookie value in STH log #418

osfrance opened this issue Aug 11, 2017 · 0 comments

Comments

@osfrance
Copy link

Hi,
Because I have horizon, wirecloud and sth-comet in the same docker machine, I set in wirecloud settings.py :
SESSION_COOKIE_NAME = "wcsessionid"
CSRF_COOKIE_NAME = "wccsrftoken"

But when I want to use the plugin STH source, I had an error message in comet console :

time=2017-08-11T08:00:40.902Z | lvl=WARN | corr=20b047d2-7ed1-45c8-af7a-52c28a5eaa64 | trans=20b047d2-7ed1-45c8-af7a-52c28a5eaa64 | op=OPER_STH_GET | from=IP_MASKED | srv=nca | subsrv=/test1 | comp=STH | msg=GET /STH/v1/contextEntities/type/obj-test/id/test1/attributes/temperature?lastN=864000&dateFrom=2017-08-01T08%3A00%3A40.415Z, event={"request":"1502438440900:comet:1:j67gxckc:10014","timestamp":1502438440901,"tags":["state","error"],"data":{"header":"csrftoken=TOKEN_MASKED, sessionid="SESSION_MASKED","errors":[{"name":"csrftoken","value":"TOKEN_MASKED, sessionid="SESSION_MASKED","settings":{"strictHeader":true,"ignoreErrors":false,"isSecure":false,"isHttpOnly":false,"path":null,"domain":null,"ttl":null,"encoding":"none"},"reason":"Invalid cookie value"}]},"internal":true}

If I try the REST request : GET http://IP_MASKED:8666/STH/v1/contextEntities/type/obj-test/id/test1/attributes/temperature?hLimit=3&hOffset=0
with setted header FIWARE_SERVICE and FIWARE_SERVICE_PATH but without cookie, it's working.

Thanks for help,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant