usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.48k stars 576 forks source link

[BUG] Cloudflare DNS API Error #1252

Closed Coolspotcreative closed 2 months ago

Coolspotcreative commented 2 months ago

Describe the bug When setting up the Zone DNS with the cloudflare api and with the option sync local to cloudflare disabled. When trying to fetch the dns records I get the following error:

Cannot fetch records. Error message: module 'CloudFlare' has no attribute 'CloudFlareAPIError'

To Reproduce What steps did you take when the issue occurred?

  1. go to cloudflare submenu in DNS
  2. Enter cloudflare registered email and token and set sync local to disabled
  3. Save
  4. go to manage dns 5.Select domain in the drop down

Expected behavior Expectation is that it would fetch the current dns records from cloudflare

Operating system: Ubuntu server 22.04.4

CyberPanel version: 2.3

usmannasir commented 2 months ago

let me check

usmannasir commented 2 months ago

I can see records are being fetched for me fine, maybe you have not entered the correct key.