question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy bug - socket hang up

See original GitHub issue

This is a Bug Report

Description

For bug reports:

  • What went wrong? Deploy failed
  • What did you expect should have happened? Deploy succes
  • What was the config you used? Shown in error message below
  • What stacktrace or error message from your provider did you see?
Error --------------------------------------------------
 
     ServerlessError: ServerlessError: socket hang up
 
     For debugging logs, run again after setting SLS_DEBUG env var.
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
 
     Please report this error. We think it might be a bug.
 
  Your Environment Information -----------------------------
     OS:                 darwin
     Node Version:       6.2.1
     Serverless Version: 1.2.0

I’m trying to set environment vars in serverless.yml and they weren’t accessible through process.env in handler.js.

I noticed the env vars example in the ‘examples’ repo contained the following line in the yml file:

frameworkVersion: ">=1.2.0 <2.0.0"

so I updated the Serverless CLI from 1.1.0 to 1.2.0 and tried to deploy again. Then I got the error.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Swirek89commented, Jul 27, 2018

@eahefnawy After upgrading to v1.29.0 everything is OK. Thanks!

1reaction
eahefnawycommented, Jul 26, 2018

@SoftMaker We just released a new v1.29.0 version that includes the fix for this. Could you try upgrading serverless?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Socket hang up when deploying Azure Functions · Issue #3100
Socket hang up when deploying Azure Functions #3100 ... Here's some information on the bug we suspect is causing the issue with zip...
Read more >
"Error: Server Error. socket hang up" whenever I do "firebase ...
After setting up all the firebase.json correctly, whenever I try to deploy those to the my project on firebase, this error keeps occuring....
Read more >
NodeJS - What does socket hang up actually mean - Edureka
When a socket hang up is thrown, one of two things happens: When you're a customer, When you send a request to a...
Read more >
Unable to Deploy Azure Function - Visual Studio Feedback
Error: socket hang up. Here is the setup for my deployment step: Yaml: steps: - task: AzureFunctionApp@1 displayName: 'Reports Function App Deploy: ...
Read more >
How to handle a socket hang up error in Node.js usually - Quora
Socket hang up error are usually errors when requests coming to your server are more than it can handle. This might be b...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found