Skip to content
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

Failed to load Stable.art #12

Open
nabileisa opened this issue Jan 17, 2023 · 9 comments
Open

Failed to load Stable.art #12

nabileisa opened this issue Jan 17, 2023 · 9 comments
Labels
enhancement New feature or request

Comments

@nabileisa
Copy link

Hi, I was attempting to install the extension and kept failing to load with the error Failed to load Stable.art,
so I took a look at the code to try and figure out what the problem was and turns out the scripts were being loaded from https://stable.art/ not from the extension files .

<!doctype html><html><head><title>Stable.art</title><script defer="defer" onerror="handleScriptError()" src="https://stable.art/plugin-code/js/chunk-vendors.js"></script><script defer="defer" onerror="handleScriptError()" src="https://stable.art/plugin-code/js/app.js"></script></head><body><div id="app"><sp-heading size="L" style="text-align: center;" id="app-loader">Loading...</sp-heading></div><script>function handleScriptError() {
        document.getElementById('app-loader').textContent = 'Failed to load Stable.art';
      };</script></body></html>

so,why is it loading the js files from a remote site instead of the files that are bundled with it?

@isekaidev
Copy link
Owner

For updates - it allows users to get new versions almost in real time and I do not need to spend time creating separate ccx files for every update. Bundled files will be used in the future as a fallback for cases like yours, but I did not have time to implement it.

However, it is strange that you have this error. Could you open https://stable.art/plugin-code/js/app.js in the browser, does it work?

@nabileisa
Copy link
Author

Understandable ,I just wish that mechanism and the always online requirement was mentioned in the readme for transparency at least.
as for the error I know the reason for it was because the machine I was testing it on was offline and photoshop had no access to the internet.
Thanks for the reply and the great work on this plugin and I look forward to future updates.

@ZeroCool22
Copy link

ZeroCool22 commented Feb 2, 2023

Understandable ,I just wish that mechanism and the always online requirement was mentioned in the readme for transparency at least. as for the error I know the reason for it was because the machine I was testing it on was offline and photoshop had no access to the internet. Thanks for the reply and the great work on this plugin and I look forward to future updates.

This, would be good if the need of Online mode could be configurable by the user. So plugin could work without connection too.

@isekaidev isekaidev added the enhancement New feature or request label Feb 2, 2023
@isekaidev isekaidev changed the title Question: why is the extension loading the .js files from https://stable.art even though they are bundled with it Failed to load Stable.art Feb 2, 2023
@isekaidev isekaidev pinned this issue Feb 2, 2023
@isekaidev isekaidev mentioned this issue Feb 2, 2023
@sstoryart1
Copy link

tried installing this plugin
installation went ok but all it says in big is loading...
does not work

@davidcovo
Copy link

image

@yadyadayada
Copy link

New to Github, first comment ever, English is not my first language. I would love to add my voice here, if you can, would you please allow the plugin offline functionality?

@IWDLACSWCAKT
Copy link

Is there a workaround to the always online requirement? My internet is really inconsistent where I live right now and sometimes I like to use the plugin where there is no broadband

@GoregoriDes
Copy link

Go to the index.html and remove the http:https://localhost:8080
<script defer onerror="handleScriptError()" src="http:https://localhost:8080/js/chunk-vendors.js"></script>
<script defer onerror="handleScriptError()" src="http:https://localhost:8080/js/app.js"></script>

Just keep it
<script defer onerror="handleScriptError()" src="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/js/chunk-vendors.js"></script>
<script defer onerror="handleScriptError()" src="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/js/app.js"></script>
and it will check in your local folder structure.

@IWDLACSWCAKT
Copy link

Go to the index.html and remove the http:https://localhost:8080 <script defer onerror="handleScriptError()" src="http:https://localhost:8080/js/chunk-vendors.js"></script> <script defer onerror="handleScriptError()" src="http:https://localhost:8080/js/app.js"></script>

Just keep it <script defer onerror="handleScriptError()" src="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/js/chunk-vendors.js"></script> <script defer onerror="handleScriptError()" src="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/js/app.js"></script> and it will check in your local folder structure.

I did this and it worked, thank you!
But this generated other problems:
-Generate button won't display % progress of current generation, it only displays how many seconds have passed (this is not an issue, although it might help someone understand what's going on better than me)
-Extra options no longer appear, meaning it will always create 4 different pictures, and I can't change the resolution when using inpaint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants