https://discord.gg/botpress logo
i'm getting a "You are not a participant
# 🌎general
w
i'm getting a "You are not a participant in this message's conversation" while querying the "createMessage" endpoint, even though the userId used to create the x-user-key and the conversationId are pulled directly from botpress. has anyone else had this issue or knows what to do?
l
hey @wide-umbrella-5226
Before we dive deeper can you try hard refreshing really quick and trying again?
CTRL + SHIFT + R
w
no problem! but it still doesn't work
but when i try sending a message to this same user and conversation, i get that error
l
Interesting @wide-umbrella-5226 will have to research and get back
w
okay! thank you so much!
l
Hey shen I wasn't able to find an answer right away, can you provide more details about the tools you're using + steps or any additional information that could help out?
w
i'm using n8n, and i've pretty much sent all the steps up above. i'm very confused as well because the error seems pretty illogical... the conversation is clearly going on as shown in the emulator
maybe this is an emulator-only thing? i know triggers are funky in the emulator as well
i pass convo and user ids to n8n > i sign the user id with my encryption key using JWT > i try querying create message with these values and apparently the user doesn't belong to the conversation
i tried filling in the values manually instead of using variables to no avail
hi @loud-crowd-60573 ! i've explained what's happening in a really confusing way, so i'm gonna try to make it simpler: ERROR: user does not belong to conversation WHEN: i try creating a message through the chat endpoint CONTEXT: 1) i grab userId and conversationId through the event.userId and event.conversationId at runtime (created automatically by botpress) 2) i sign the userId with my secret key, creating my x-user-key 3) i query the create message endpoint with the conversationId and x-user-key, and i get the "user does not belong to conversation" error my main hypothesis right now is that the users created at runtime don't really exist, since their format is different (e.g. user-1 [emulator] instead of user_01K5W29TA5NHMCJHJ7P4DQTKE4 [whatsapp]), and they don't appear on the "users" menu in botpress. is this on purpose?
l
Awesome @wide-umbrella-5226 thank you for calrifying, will try getting some insight and getting back by the EOD!
w
i think i found the problem - the conversation ids and user ids generated on the emulator really don't work. i tried creating a conversation through whatsapp and got the error "The conversation "conv_01K6GHNMRE6AA27GKNSKC32BMG" is not linked to the integration "dd908dab-9d9b-4695-8257-38c30b485c99" which i suppose means i can't create a message in a whatsapp conversation using the chat integration... :(
nevermind, also doesn't work on webchat conversations 🫥
@loud-crowd-60573 hi ross, good morning! i tried recreating the behaviour on a new account and i get the same type of error:
The conversation "conv_01K6QTFCMPAR1YCHGHCCKAKNC1" is not linked to the integration "81491b66-c0ac-4956-b98f-42fb33d7ab48"
i don't know what integration is being talked about here. i only have all the default ones + the chat one