Skip to content

fix: restore connecting to external gnetcli_server via url#80

Open
vaneuk wants to merge 1 commit into
annetutil:mainfrom
vaneuk:restore-conf-url
Open

fix: restore connecting to external gnetcli_server via url#80
vaneuk wants to merge 1 commit into
annetutil:mainfrom
vaneuk:restore-conf-url

Conversation

@vaneuk
Copy link
Copy Markdown

@vaneuk vaneuk commented May 22, 2026

Summary

Commit 87eacdf ("Gnetcli starter") rewrote make_api to always fork a local
gnetcli_server via GnetcliStarter. The url field in AppSettings is
still read but never used, so configs that point at an externally-running
server crash with FileNotFoundError: 'gnetcli_server'.

Restores the pre-87eacdf branch in ApiMaker.make_api: when conf.url is
set, connect directly; otherwise spawn a local server as today.

Changes

  • gnetcli_adapter.py: branch on conf.url in make_api.
  • tests/test_methods.py: assert GnetcliStarter is not invoked when url is set.
  • README.md: example for the external-server case.

@vaneuk vaneuk changed the title restore connecting to external gnetcli_server via url fix: restore connecting to external gnetcli_server via url May 22, 2026
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

Successfully merging this pull request may close these issues.

1 participant