I wrote some Go code, push to github, set up an App on DO, and… “Deployment failed”.
› Error: While deploying 'webinit' (running remote build): The function
› exceeded its time limits of 120000
I tried again with deploying a Function instead of inside an App.
That gave me a more detailed log but with basically the same information.
"response":{
"result":{
"error":"The function exceeded its time limits of 120000 milliseconds."
}
"size":NULL
"status":"developer error"
"success":false
}
Is there a better way to see these logs? I’d really like to know why the build is failing. It builds fine locally. This particular issue is being caused by importing the package github.com/twilio/twilio-go
. It seems to timeout most of the time with it intermittently working.
To reproduce:
doctl serverless init --language go timeout-example
Update the hello.go to have this at the top:
import (
_ "github.com/twilio/twilio-go"
)
Then run
(cd timeout-example/packages/sample/hello; go mod init hello && go mod tidy)
doctl serverless deploy timeout-example
If anyone has advice on how to figure out what the issue is, I’d appreciate it.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I was running into this problem, also after adding the Go twilio client. Switching the runtime from
go:default
/go:1.17
togo1.20
seems to have resolved it for me.Hi there,
Usually what I do is add the
--trace
flag. It shows a log of network activity while performing a command.I was able to reproduce the problem on my end and will flag this internally.
In the meantime, please reach out to our amazing support team who will be more than happy to assist you with this issue!
Hope that helps!
- Bobby.