I am having similar issue with the error:
Code runner successfully installed on moodle 4.1.1
"Unexpected error while executing your code. The sandbox server may be down or overloaded. Perhaps try again shortly?".
I have read as much as I could, but no solution so far. Please find below various solution attempts:
wget --header="X-API-Key: 2AAA7A5415B4A9B394B54BF1D2E9D" jobe2.cosc.canterbury.ac.nz/jobe/index.php/restapi/languages
--2023-07-01 17:35:31-- http://jobe2.cosc.canterbury.ac.nz/jobe/index.php/restapi/languages
Resolving jobe2.cosc.canterbury.ac.nz (jobe2.cosc.canterbury.ac.nz)... 188.8.131.52
Connecting to jobe2.cosc.canterbury.ac.nz (jobe2.cosc.canterbury.ac.nz)|184.108.40.206|:80... connected.
HTTP request sent, awaiting response... 200 OK
I then tried:
wget --header="X-API-Key: 2AAA7A5415B4A9B394B54BF1D2E9D" xx. xxx. xx. xxxx[my server IP]/jobe/index.php/restapi/language
--2023-07-01 17:43:35-- http://xx.xxx.xx.xxx/jobe/index.php/restapi/language
Connecting to 220.127.116.11:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-07-01 17:43:35 ERROR 404: Not Found.
I use digitalocean server and is up and running.
Not sure if what to do.
All help greatly appreciated.