-
Notifications
You must be signed in to change notification settings - Fork 18
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
Install error in Safari - XMLHttpRequest cannot load http://127.0.0.1:38450/install_model due to access control checks #27
Comments
Can you show the details of the request from the network tab? The local server has CORS configured appropriately so Safari should be able to handle it fine. |
I was away all week, I'll check it tomorrow the next day. |
Sorry, projects eat up too much time. I suspect that there may be a low level problem on my machine, I'll do a clean reinstall and try again. |
I've managed to get back to this. I wiped the hard drive as I suspected some low level system permission problem as a few applications have had odd write access problems that required using the recovery console to attempt to fix. After a reformat I installed Monterey and updated my new system and pulled my apps and data from a backup. I tried running things again and nothing worked at all. I couldn't even get to the above error. I think that the restore mangled things. I'd like to wipe everything and start again from scratch, but I don't see anything about that in the repo or on the website, is there such a document? |
@fran-sgd I don't understand your question. If you mean uninstalling the package, |
I could not recall all that I initially installed, so I removed all the libraries that seemed to be related, then started it all over, this time making sure that the content filtering for coqui.ai and 127.0.0.1 were turned off. I tried using the install button on the site and ended up in the same place as the first comment in this thread. I looked at the Network panel to see where the request you mentioned was, but I have a large number of items showing there. I exported them all and it wrote a 2.6MB file, surely that isn't what you meant? I'll post it here if you like. Your question was "Can you show the details of the request from the network tab? " but do you mean a screenshot or everything or ?? Sorry, I'm just having troubling making a clear mental model of what's going on with the way trained models are installed. I'm evaluating solutions to see what might work for transcribing a large number of audio files. I typically do evaluations by doing the suggested installation, stt in this case, then testing it with the simplest HelloWorld kind of thing. Here, I just want to do the basic test, training my own model is well beyond where I am in evaluation, and the browser has been injected into the process of getting a usable model for simply testing the basic thing. I really don't see the value of debugging browser problems, but I'm happy to do it if it gets me a model I can use to test two minutes of audio. But, frankly, it seems like a locally run shell script or a bit of python could do this all without the massive black box of a browser being involved. It is your project, of course, but this just seems like overkill. |
Finally got back to this after wiping the OS and installing the latest macos & everything else and I'm still getting the same error. I check that Safari isn't doing content blocking on the page provided by the running server on http://127.0.0.1:38450/install_model The Network tab shows collapsable list of network events, so I can't just paste it in here as text. Instead, I cleared everything on Safari's Web Inspector right at the point where I am entering an email address and recorded the attached Network Panel and the general Console Panel as screen shots attached. I have the option of exporting the network data as a file named coqui.ai.har which I've attached here with a TXT extension since github doesn't allow it otherwise. My version of Safari is "Version 15.3 (17612.4.9.1.8)" which is the latest as of a few days ago. I haven't modified the system to block local requests, in fact I do it all the time with no problem, so I'm at a loss as to where the problem might be. |
And, I wondered if this was my machine, so I pulled an 2011 macbook from the closet and updated python, installed the model manager and tried to load a model. I got essentially the same errors and tried changing various privacy settings on and off to no benefit. The one change in the console is this alert before the two errors (as shown above). This version of Safari is three years old, the last version this old machine can install. The alert text is:
Otherwise, identical behavior. Does anyone use macos and and can confirm it works on Safari? |
A-ha, thanks for sharing the network logs. It seems this has nothing to do with CORS. Rather, it's about mixed-content blocking (accessing I'm afraid there's no easy way for us to workaround it to make the click to install workflow work seamlessly. What we could do is add a manual install option where you copy and paste from the website into the model manager. |
Glad to know it was Safari and not my system. Since I had the old machine sitting there and it had Opera installed, I pasted the URL from Safari into Opera and ran the install. I used the provided link to locate the files at ~/.local/share/coqui/models and copied them to my development machine. I'll try it out as soon as I get a chance to read the docs and look at example code. |
Thanks for the patience and for following up! |
I'm getting same error as issue #15, Safari on macos is refusing to allow access to the server, which is running. I cleared the Safari settings for the site and the local server URL to both not do content blocking, but that doesn't seem to matter. I would rather not install Chrome, or any other browser, just to load models, is there an alternative method for getting the models to the server that doesn't use a browser?
The browser console shows this, with the correct local server:
The text was updated successfully, but these errors were encountered: