This error can occur after ProxySql v2.0.6 on Single Primary Member configuration in Group Replication setup.
This means that one group will be able to read write
The other one will be used only for reading data.
As is explained in the documentation for proxySql variable mysql-set_query_lock_on_hostgroup
So to resolve this issue on the single primary server on Group replication try to do this.
Log into ProxySql admin monitor
set mysql-set_query_lock_on_hostgroup=0;
load mysql variables to runtime;
save mysql variables to disk;
Not mandatory but the ProxySql service can be restarted in order to check if variables are saved on disk.