MySQL & MariaDB error 4049 ER_OPERATION_NOT_ALLOWED_ON_GR_SECONDARY
Same number, two different errors. 4049 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLThis operation cannot be performed on a Group Replication secondary member, it must be done on the group primary.
MariaDBIncorrect GeoJSON format - too few points for linestring specified.