Chat with RTX "Invalid session. Reopen RTX Chat from desktop to continue chatting."

I don’t really know what is the deeper issue that is causing this bug, or if it’s just that nvidia didn’t catch the bug. anyway, the following fixes the surface issue and allows the interface to open properly:
First find this file:
C:\Users\{Your user dir}\AppData\Local\NVIDIA\ChatWithRTX\RAG\trt-llm-rag-windows-main\ui\user_interface.py
Find the context of line 298.
Place the following line of code:

key, value = cookie.split(‘=’)

Replace with:

split_index = cookie.find(‘=’)
key, value = cookie[:split_index], cookie[split_index+1:]

Save file and restart application.
Remember to take care to make sure the indentation is the same, python is sensitive to this.
The reason why I’m providing the bug fix here is because I don’t really know how to make a community contribution to this RTX Chat from Nvidia.
Anyway the problem with this bug is that nvidia’s code tries to split a cookie directly into strings by ‘=’, but there are times when there is more than one = in the string, such as a ‘=’ that is included by a “”, which causes the 'key, value = ’ code to try to unwrap an array larger than 2.

4 Likes