SdPaint icon indicating copy to clipboard operation
SdPaint copied to clipboard

"TypeError: NetworkError when attempting to fetch resource." when using web interface.

Open ThisIsNetsu opened this issue 1 year ago • 4 comments

First of all, this thing is amazing. But for me it only works when I run the start.bat. When I try the web interface I get

"TypeError: NetworkError when attempting to fetch resource."

and then the terminal window:

INFO: Will watch for changes in these directories: ['I:\SdPaint-main'] INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) INFO: Started reloader process [2296] using WatchFiles INFO: Started server process [27292] INFO: Waiting for application startup. INFO: Application startup complete. INFO: 127.0.0.1:56625 - "GET /modules HTTP/1.1" 200 OK INFO: 127.0.0.1:56626 - "GET /models HTTP/1.1" 200 OK INFO: 127.0.0.1:56627 - "GET /config HTTP/1.1" 200 OK INFO: 127.0.0.1:56637 - "POST /paint_image HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "I:\SdPaint-main\venv\lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 426, in run_asgi result = await app( # type: ignore[func-returns-value] File "I:\SdPaint-main\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call return await self.app(scope, receive, send) File "I:\SdPaint-main\venv\lib\site-packages\fastapi\applications.py", line 1106, in call await super().call(scope, receive, send) File "I:\SdPaint-main\venv\lib\site-packages\starlette\applications.py", line 122, in call await self.middleware_stack(scope, receive, send) File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call raise exc File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call await self.app(scope, receive, _send) File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\cors.py", line 91, in call await self.simple_response(scope, receive, send, request_headers=headers) File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\cors.py", line 146, in simple_response await self.app(scope, receive, send) File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call await self.app(scope, receive, sender) File "I:\SdPaint-main\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call raise e File "I:\SdPaint-main\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call await self.app(scope, receive, send) File "I:\SdPaint-main\venv\lib\site-packages\starlette\routing.py", line 718, in call await route.handle(scope, receive, send) File "I:\SdPaint-main\venv\lib\site-packages\starlette\routing.py", line 276, in handle await self.app(scope, receive, send) File "I:\SdPaint-main\venv\lib\site-packages\starlette\routing.py", line 66, in app response = await func(request) File "I:\SdPaint-main\venv\lib\site-packages\fastapi\routing.py", line 274, in app raw_response = await run_endpoint_function( File "I:\SdPaint-main\venv\lib\site-packages\fastapi\routing.py", line 191, in run_endpoint_function return await dependant.call(**values) File "I:\SdPaint-main\scripts\views\WebView\app.py", line 108, in root state["main_json_data"]["tiling"] = data["config"]["tiling"] KeyError: 'tiling'

After that it keeps repeating INFO: 127.0.0.1:56638 - "GET /server_status HTTP/1.1" 200 OK

over and over.

At first I thought I had installed something wrong, but the non web interface version seems to work just fine.

Any idea what this could be?

ThisIsNetsu avatar Nov 19 '23 13:11 ThisIsNetsu

Same issue

adiamaq avatar Dec 03 '23 20:12 adiamaq

image Non web works fine

adiamaq avatar Dec 03 '23 20:12 adiamaq

I also have the same issue when running the "StartWeb" script.

greenrocket77 avatar Dec 08 '23 00:12 greenrocket77

Same issue with StartWeb.bat

karachay-b avatar Feb 22 '24 17:02 karachay-b