josephrocca / OpenCharacters

Simple little web interface for creating characters and chatting with them. It's basically a single HTML file - no server. Share characters using a link (character data is stored within the URL itself). All chat data is stored in your browser using IndexedDB. Currently supports OpenAI APIs and ~any Hugging Face model.
https://josephrocca.github.io/OpenCharacters
MIT License
364 stars 60 forks source link

Nothing loads after Chrome update #63

Open reiharus opened 1 year ago

reiharus commented 1 year ago

Hi! My Chrome got updated today and OpenCharacters stopped working. Everything is blank and none of the buttons work, the data is still there. When I open the console, I get the following errors:

josephrocca.github.io/:19 Uncaught SyntaxError: Unexpected identifier 's2nPlayer'

(index):573 Uncaught ReferenceError: DOMPurify is not defined
    at (index):573:7

3001.scriptcdn.net/code/static/1:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

/OpenCharacters/#:1 Error handling response: TypeError: Cannot read properties of undefined (reading '1723416301')
    at chrome-extension://hdokhoidbfbodcgoeacbddacldjgnkjc/contentScript.js:124:21
vendor.js:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
    at v (vendor.js:1:839634)
v @ vendor.js:1
josephrocca commented 1 year ago

Hmm looks like you've got a chrome extension interfering with things, based on those logs.

Works fine for me - what is your chrome version?

reiharus commented 1 year ago

@josephrocca Hi! Sorry for taking so long to reply, work hasn't really let me come back to OC.

I did try loading the page a few days ago and it worked all of a sudden, even with all of my extensions running, but I didn't do much as I was busy. Today, I restarted my computer and came back to see if it was still working, but it isn't anymore. I disabled the extensions and no luck either.

Not sure what's causing this as I've tested it in another Chrome account and it loads, maybe it's something with the configuration of my usual account, but then again the other day it did load...

Chrome version is 115.0.5790.114.

The console messages changed a bit now:

Captura-de-pantalla-2023-07-29-a-las-2-01-21.png

josephrocca commented 1 year ago

Extremely strange - I have no idea what's going on there. You can try clicking the josephrocca.github.io/:19 next to the https error. Looks like the HTML doc is being 'mangled' somehow such that a URL is not longer enclosed in string quotes or something

reiharus commented 1 year ago

Extremely strange - I have no idea what's going on there. You can try clicking the josephrocca.github.io/:19 next to the https error. Looks like the HTML doc is being 'mangled' somehow such that a URL is not longer enclosed in string quotes or something

Hmm I tried and it does nothing, now the page doesn't load in two of my other profiles either all of a sudden, it's very weird. It still works in only one profile and I have no clue what the difference is. Opening a incognito window it doesn't work either.

josephrocca commented 1 year ago

Can you try pressing ctrl+u to view source, and then scrolling down to around line 560 and screenshotting? This is what I see, for example:

image