balderdashy / balderdashy/sails

Cannot make http requests to sails app running in a docker container

Open
#6,832 2 comments 0 reactions 0 assignees View on GitHub
repro please sockets
Dominant language
JavaScript
Stars
22.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

**Node version**: 8.12.0
**Sails version** _(sails)_: 1.2.3
**ORM hook version** _(sails-hook-orm)_: 2.1.1
**Sockets hook version** _(sails-hook-sockets)_: 1.5.5
**Grunt hook version** _(sails-hook-grunt)_: 1.0.8


Hello,
I recently updated sails from 0.12 to v1 on my application that uses sails to connect my backend to a mongo database. The update works great on my local machine, however during my jenkins build when pushing out the update to my servers, I am running into an error connecting to a docker container which runs my sails application.
I am currently receiving the error: Client network socket disconnected before secure TLS connection was established
and cannot seem to debug it. This error happened when I attempted to send a GET request to the server running the docker container after the app spun up. I have not been able to diagnose the root issue in my own debugging or in sails documentation

Here are the headers I am sending in the GET: Accept, 'X-JFrog-Art-Api, 'Content-Type', 'User-Agent': 'axios/0.18.1'

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Axios GET request from the Jenkins build against the Dockerized Sails application, using the reported Node.js 8.12.0 and Sails 1.2.3 versions. Inspect the container and deployment TLS/network setup; done means identifying the cause of the disconnected secure TLS connection and documenting or verifying a successful request. No source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, node.js
Domain
backend, devops, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.