crisp-im / node-crisp-api

:zap: Crisp API Node Wrapper
https://docs.crisp.chat/guides/rest-api/
MIT License
99 stars 38 forks source link

getMessagesInConversation is returning "route does not exist" #63

Closed san425 closed 4 months ago

san425 commented 4 months ago

Hi there!

I'm not sure if I'm doing something wrong, but trying to access the messages in a conversation is returning a "route not found error."

My Code:

const messages = await CrispClient.website.getMessagesInConversation(websiteID, sessionID, timestampbefore);

Error:

{
  reason: 'error',
  message: 'not_found',
  code: 404,
  data: {
    namespace: 'response',
    message: 'Got response error: the route does not exist'
  }
}

I saw this: https://github.com/crisp-im/node-crisp-api/issues/8 but I'm not sure if this is an error on my part or something is wrong with the library. All of my website and session ids are correct. Including the timestampbefore.

san425 commented 4 months ago

Yeah, actually, I had messed up! My bad, I'm gonna close this issue :)