I am always getting this error and need to create new Deployment with same code to fix the function :
An internal curl error has occurred within the executor! Error Msg: Could not resolve host: projectid-deploymentId
TL;DR
Developers are repeatedly encountering an internal curl error when trying to execute functions. Creating a new Deployment with the same code is a temporary workaround to fix the issue.