Skip to content

[Bug]: Crash occurs when the app is blocked by the firewall #1394

Description

@hawk1335

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

Alpha 9.5.7

Operating System & Version

Windows 10

Description

When the app is blocked by the firewall, an error occurs upon launch, causing it to force close.

Traceback (most recent call last):
File "urllib3\connection.py", line 204, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
PermissionError: [WinError 10013] An Attempt Was Made to Access a Socket in a Way Forbidden by Its Access Permissions

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 488, in _make_request
File "urllib3\connectionpool.py", line 464, in _make_request
File "urllib3\connectionpool.py", line 1093, in _validate_conn
File "urllib3\connection.py", line 759, in connect
File "urllib3\connection.py", line 219, in _new_conn
urllib3.exceptions.NewConnectionError: HTTPSConnection(host='api.github.com', port=443): Failed to establish a new connection: [WinError 10013] An Attempt Was Made to Access a Socket in a Way Forbidden by Its Access Permissions

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests\adapters.py", line 486, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 535, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/TagStudioDev/TagStudio/releases/latest (Caused by NewConnectionError("HTTPSConnection(host='api.github.com', port=443): Failed to establish a new connection: [WinError 10013] An Attempt Was Made to Access a Socket in a Way Forbidden by Its Access Permissions"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 72, in main
File "tagstudio\qt\ts_qt.py", line 616, in start
File "tagstudio\core\ts_core.py", line 198, in get_most_recent_release_version
File "requests\api.py", line 73, in get
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 519, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/TagStudioDev/TagStudio/releases/latest (Caused by NewConnectionError("HTTPSConnection(host='api.github.com', port=443): Failed to establish a new connection: [WinError 10013] An Attempt Was Made to Access a Socket in a Way Forbidden by Its Access Permissions"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 80, in
File "main.py", line 76, in main
RuntimeError: lost sys.stdin

Expected Behavior

The app should function normally even when blocked by the firewall.

Steps to Reproduce

  1. Block the app using the firewall.
  2. Launch the app.

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions