Hi,
We are sorry to hear that you are experiencing an error while running the sample.
The error 406 means the IoT Edge device is offline or not sending status reports.
Looks like IoT Edge runtime is not starting up properly on your device.
Please check the EdgeAgent logs for more detailed on error.
https://learn.microsoft.com/en-us/azure/iot-edge/troubleshoot#standard-diagnostic-steps
Also, can you try the following command
$>sudo systemctl status iotedge
Just to confirm, are you following the simplified version of documentation Tutorial: Perform image classification at the edge with Custom Vision Service ?
As specified in the original repo, You can run the solution on either of the following hardware:
- Raspberry Pi 3: Set up Azure IoT Edge on a Raspberry Pi 3 (instructions to set up the hardware - use raspbian 9 (stretch) or above) + instructions to install Azure IoT Edge) with a SenseHat and use the arm32v7 tags.
- Simulated Azure IoT Edge device (such as a PC): Set up Azure IoT Edge (instructions on Windows, instructions on Linux) and use the amd64 tags. A test x64 deployment manifest is already available. To use it, rename the deployment.template.test-amd64 to deployment.template.json, then build the IoT Edge solution from this manifest and deploy it to an x64 device.
I understand that your $edgeAgent and $edgehub are running properly as per your statement. I haven't tried it but the same code should work on Raspberry Pi 4 device as well.
Please double check the complete logs and hardware required for running the sample and try again.
If you are still blocked with the same error, as @QuantumCache mentioned, Kindly open an issue under the Custom-vision-service-iot-edge-raspberry-pi
repo for further help.