Invalid session id
Im trying a basic http post for the converse endpoint but I keep getting the invalid session id error. Documentation on this is very sparse https://wit.ai/docs/http/20160511#post--converse-link , it says "A specific ID of your choosing representing the session your query belongs to". I can't really understand what to do with this, since I guess it's some random number I can generate no? Where does this get checked?
Thanks in advance for your help! :)
Do you guys know anything about this? Thanks! :)
facing same issue ... any idea?
You might have invalid characters in your sessionId. I tried to use phone numbers as the sessionId and Wit rejected them.
When I use mongo id like '577ad956c6b4c91a00e42459', Wit returns ' Error: Oops, I don't know what to do.' but when I use datetime like '2016-07-11T14:55:07', it works fine. =/
Does sessionId have a characters limit? It looks like it has a 9-character limit.
I'm curious why findOrCreateSession inexamples/messenger.js doesn't use the the Facebook ID (fbid) as the session ID.
Creating a session ID from a date, albeit in milliseconds, is not guaranteed to be unique, as two sessions can be created in the same millisecond.
I tried using fbid as the session ID, it worked for a while, then I got the dreaded Oops, I don't know what to do. error, so I switched back to the date implementation, and the error went away.
face same issue,
I'm having this issue all of a sudden too. Now it won't accept new Date().toISOString(), basic strings or FB ID's. Has anyone found a solution?
I put Facebook user's ID as query string and it works.
POST https://api.wit.ai/converse?session_id=123456789