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

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

Open
ThisIsNetsu opened this issue Nov 19, 2023 · 4 comments

Comments

@ThisIsNetsu
Copy link

ThisIsNetsu commented Nov 19, 2023

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?

@adiamaq
Copy link

adiamaq commented Dec 3, 2023

Same issue

@adiamaq
Copy link

adiamaq commented Dec 3, 2023

image
Non web works fine

@greenrocket77
Copy link

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

@karachay-b
Copy link

Same issue with StartWeb.bat

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

No branches or pull requests

4 participants