Unexpected end of JSON input error when deploying serverless function using doctl.

For a go project, created using the following command

$ doctl serverless init --language go example-project

I get the following error deploying it.

$ doctl serverless deploy example-project
Error: unexpected end of JSON input

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
January 19, 2023

Hi there,

I’ve just tested this and it seems to be working as expected.

What is the doctl version that you are using? If it is not the latest one listed here I would recommend upgrading your version and trying this again.

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up