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

Error while deleting the domain with Cloudflare Worker mode #4753

Closed
moashrafi opened this issue Jan 25, 2025 · 1 comment
Closed

Error while deleting the domain with Cloudflare Worker mode #4753

moashrafi opened this issue Jan 25, 2025 · 1 comment

Comments

@moashrafi
Copy link

Internal Error Stacktrace:

Error Message: name '__cf' is not defined

Traceback (most recent call last):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/base.py", line 69, in inner
    return self._run_view(f, *args, **kwargs)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/base.py", line 369, in _run_view
    return fn(self, *args, **kwargs)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/model/base.py", line 2235, in delete_view
    if self.delete_model(model):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/contrib/sqla/view.py", line 1216, in delete_model
    if not self.handle_view_exception(ex):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/contrib/sqla/view.py", line 1133, in handle_view_exception
    return super(ModelView, self).handle_view_exception(exc)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/flask_admin/contrib/sqla/view.py", line 1211, in delete_model
    self.on_model_delete(model)
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/panel/admin/DomainAdmin.py", line 323, in on_model_delete
    if not hutils.network.cf_api.delete_dns_record(model.domain):
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/hutils/network/cf_api.py", line 49, in delete_dns_record
    if not __prepare_cf_api_client():
  File "/opt/hiddify-manager/.venv/lib/python3.10/site-packages/hiddifypanel/hutils/network/cf_api.py", line 10, in __prepare_cf_api_client
    if __cf and isinstance(__cf, cloudflare.Cloudflare):

Details:

Hiddify Version: 10.80.12.dev1
Python Version: 3.10.16 (main, Dec 4 2024, 08:53:38) [GCC 13.2.0]
OS: Ubuntu 24.04.1 LTS | Linux-6.8.0-51-generic-x86_64-with-glibc2.39

@litoosh13
Copy link

please use latest release not dev version !!!!
and worker is no longer support at the moment by panel

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

2 participants