I'm trying to set up my recently purchased RPi 4 4GB with Raspbian from a NOOBS SD card to print on my Canon MG5650 printer which is connected to my network by wifi. I'm running the Pi headless and accessing via VNC Viewer on a Windows laptop.
I've seen several tutorials on the web about using CUPS and initially using instructions from https://www.makeuseof.com/tag/ways-print-raspberry-pi/, I installed it with
sudo apt-get install cups-client
The tutorial says that a conflict file will be found at /etc/cups/client.conf but when I tried to find this file, I was told the directory does not exist. I eventually found it at /usr/share/doc/libcups/examples/client.conf. So I modified this file as per tutorial, inserting the printers IP Address in the appropriate place with
The :631 was from another tutorial. Without this the printer is not found.
After a reboot, I tried printing from the Pi's Text Editor. The printer window pops up and - hurrah - it shows MG5600 Series printer is available. I select and click Print but get an error pop-up showing Error printing: HTTP Error in POST Success.
Interestingly after fiddling about a bit, I found that whether the client.conf file is modified or not, I get the same result, the printer is still recognised on the print window but the same error message pops up.
I've searched the forums but cannot find any reference to this error. Any advice would be appreciated. Thanks!