atlassian / atlassian/nucleus

Socket hang up when uploading to server

Open
#90 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
420
Forks
100
PR merge metrics
No merged PRs in 30d

Description

I've gone down a bit of a rabbit hole trying to figure out why I kept getting a socket timeout error from the electron-forge publisher.

I eventually realized that when I was doing the upload at exactly **2 minutes** the upload was failing with this message:

```
An unhandled error has occurred inside Forge:
request to http://localhost:3030/rest/app/1/channel/eb76a4a94e2a588b9cb9302826aa796f/upload failed, reason: socket hang up
FetchError: request to http://localhost:3030/rest/app/1/channel/eb76a4a94e2a588b9cb9302826aa796f/upload failed, reason: socket hang up
at ClientRequest. (D:\GitHub\brl-desktop-app\node_modules\node-fetch\dist\index.js:3190:14)
at ClientRequest.emit (events.js:310:20)
at ClientRequest.EventEmitter.emit (domain.js:482:12)
at Socket.socketOnEnd (_http_client.js:453:9)
at Socket.emit (events.js:322:22)
at Socket.EventEmitter.emit (domain.js:482:12)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
```

I was simulating a prod server in a local docker compose file but connecting to an actual S3 bucket to test out aspects of the prod infrastructure.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the electron-forge publisher upload with the local Docker Compose server and the actual S3 bucket, focusing on the failure at exactly two minutes. Trace the /rest/app/1/channel/.../upload request and its socket timeout; done means the upload no longer hangs and the behavior is covered by a verified test or reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, electron, typescript
Domain
api, backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.