I was following the guide on creating and deploying a serverless function: https://docs.digitalocean.com/products/functions/how-to/create-functions/
$ doctl auth init
with the API token was successful$ doctl serverless namespaces create --label "meowchik" --region ams
and got the output
Connected to functions namespace 'fn-0cafc14a-fc8b-4197-8b9c-ac9f6618429c' on API host 'https://faas-ams3-2a2df116.doserverless.co'
$ doctl serverless init --language js meowchik-project
and got the output A local functions project directory 'meowchik-project' was created for you. You may deploy it by running the command shown on the next line: doctl serverless deploy meowchik-project
$ doctl serverless deploy meowchik-project/
Error: Invalid project configuration file (project.yml): http request failed: GET https://faas-ams3-2a2df116.doserverless.co/api/v1 Learn more about the project configuration file https://docs.digitalocean.com/products/functions/reference/project-configuration/
I can further isolate this by showing this weird interaction:
$ doctl serverless connect helloworldns
-> Connected to functions namespace 'fn-1f1df919-32ed-45fd-97f5-82400fd6a65e' on API host 'https://faas-fra1-afec6ce7.doserverless.co' (label=helloworldns)
$ doctl serverless status
-> Error: serverless support is installed but not connected to a functions namespace (use 'doctl serverless connect')
I’m pretty confused and not sure what to do about this. I haven’t changed any configuration or the project.yml file, everything is pretty much default and followed step by step according to the guide.
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
I encountered the identical issue. Simply turn off your VPN, and everything should function correctly.
I am getting the same error every time, and I do not have VPN.
connects successfuly, but
returns
Error: serverless support is installed but not connected to a functions namespace
.Also, during the invoke namespace subpath is just underscore
and the actual error is
read: connection reset by peer
I encountered the identical issue. Simply turn off your VPN, and everything should function correctly.