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

FR | mariadb = 'NoneType' #392

Open
spirillen opened this issue Oct 9, 2024 · 1 comment
Open

FR | mariadb = 'NoneType' #392

spirillen opened this issue Oct 9, 2024 · 1 comment
Assignees
Labels

Comments

@spirillen
Copy link
Contributor

What is the problem you are experiencing?

After having testing PostgreSQL for a couple of days, I was to return to my MariaDB server, when I keep getting this error

Fatal Error: 'NoneType' object has no attribute 'encoding'

How can we reproduce the problem?

To reproduce the problem:

  1. install/upgrade PyFunceble python3.11 -m pip install -U -I --pre pyfunceble-dev
  2. modify ~/.config/PyFunceble/.PyFunceble.overwrite.yaml
    cli_testing:
      db_type: mariadb ( Same error if I gives mysql)
  3. run pyfunceble -c --preload --all --execution --hierarchical -f https://raw.githubusercontent.com/mypdns/matrix/refs/heads/master/source/porn_filters/strict_filters/hosts.list
    or
    pyfunceble --database-type mariadb -c --preload --all --execution --hierarchical -f https://raw.githubusercontent.com/mypdns/matrix/refs/heads/master/source/porn_filters/strict_filters/hosts.list

Do you have a screenshot?

Screenshot

image

What did you expect to happen?

All databases would be supported {csv,mariadb,mysql,postgresql}

Is there a workaround?

Not yet

How did you configure PyFunceble?

cli_testing:
  db_type: mariadb
  inactive_db: yes
  whois_db: yes
lookup:
  dns: yes
  http_status_code: yes
  netinfo: yes
  special: yes
  whois: yes
  reputation: no
  platform: yes
  timeout: 2
dns:
  follow_server_order: no
  trust_server: yes
  server:
    - 9.9.9.10
    - 149.112.112.10
  protocol: UDP
  delay: 0.0

#proxy:
verify_ssl_certificate: no
max_http_retries: 2

platform:
  push: yes
  preferred_status_origin: recommended
  checker_priority:
    - availability
    - syntax
  checker_exclude:
    - reputation

Which Operating System did you use?

Ubuntu 22.04 LTS

Which Python Version did you use?

3.11

Which PyFunceble Version did you use?

4.3.0a4.dev

Additional context

This is only a issue on one of my virtual installs, which happens to be the one I tested with PostgreSQL, I have not seen this behavior anywhere else.... yet...

However, the one running on my desktop, refuses to generate any output files... Linux can be strange sometimes

@spirillen
Copy link
Contributor Author

Found the bug... it was in my DB server, but weirdly enough, this was the only box infected by the setting.

This change the issue to a Feature request of better error reporting, logging.

@spirillen spirillen changed the title BUG | mariadb = 'NoneType' FR | mariadb = 'NoneType' Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants