-
Notifications
You must be signed in to change notification settings - Fork 26
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
ChatCraft 'crashes' when accessing Shared Chats or Searchbar #446
Comments
What's in your console logs when this crash happens? |
Shared ChatsWhen accessed from Shared Chats TabWith Shared Chats (accessed from my Shared Chats tab), I get this error in my Dev Tools console: {
"status": 404,
"statusText": "Not Found",
"internal": true,
"data": "Error: No route matches URL \"/api/share/rjwignar/bRw2wYMh5UvOc5J7UDen_\"",
"error": {}
} When I access the same chat via a share link, I get this error: {
"_e": {},
"name": "DataError",
"message": "Failed to execute 'get' on 'IDBObjectStore': The parameter is not a valid key.\n DataError: Failed to execute 'get' on 'IDBObjectStore': The parameter is not a valid key.",
"inner": {
"stack": "Error: Failed to execute 'get' on 'IDBObjectStore': The parameter is not a valid key.\n at https://chatcraft.org/assets/index-sGYt3Ste.js:425:30652\n at Kq (https://chatcraft.org/assets/index-sGYt3Ste.js:424:3694)\n at new Be (https://chatcraft.org/assets/index-sGYt3Ste.js:424:3190)\n at Object.get (https://chatcraft.org/assets/index-sGYt3Ste.js:425:30599)\n at c.<computed> [as get] (https://chatcraft.org/assets/index-sGYt3Ste.js:425:51078)\n at https://chatcraft.org/assets/index-sGYt3Ste.js:425:6066\n at s (https://chatcraft.org/assets/index-sGYt3Ste.js:425:5768)\n at https://chatcraft.org/assets/index-sGYt3Ste.js:425:4706\n at m0 (https://chatcraft.org/assets/index-sGYt3Ste.js:425:3473)\n at qc (https://chatcraft.org/assets/index-sGYt3Ste.js:425:2313)"
}
} Search BarWhen I type a keyword into the search bar and press , this error shows up in the Dev Tools console: {
"_e": {},
"name": "SchemaError",
"message": "KeyPath [searchText+messages] on object store chats is not indexed",
"inner": null
} |
The first 404 is odd, since that object exists in the R2 bucket:
For the second, this also exists in the bucket, but maybe not in your indexeddb for some reason? You should look for that key:
These two errors imply that we're somehow requesting the wrong key at the API level in the router (client side) or CloudFlare function? The search error is different. It likely means we are trying to search on some field that is now not being indexed, maybe due to the data migration we did for the Image Preview change. We need to research this more. |
This share fails for me: https://chatcraft.org/c/tarasglek/xp5A6rszHiqroXp22E6Ap Loading that URL returns HTML. I can't easily reproduce this locally, but it would be good to figure this out. |
@Rachit1313 @humphd Are we moving this to 1.4? |
I have a PR up for it, let's do for 1.3 |
After #431 @Amnish04 and I have noticed that attempting to access shared chats or using the search bar crashes ChatCraft:
I'm also seeing issues accessing Shared Chats:
and when using the search bar:
Originally posted by @rjwignar in #442 (comment)
The text was updated successfully, but these errors were encountered: