atlassian / atlassian/nucleus

Cannot read property 'secret' of undefined

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

Description

Hi,

When I run this docker command:

docker run -t manifest-electron .

I receive this error message:

`/opt/service/lib/rest/auth.js:27
secret: config_1.sessionConfig.secret,
^

TypeError: Cannot read property 'secret' of undefined`

In my config.js file my sessionConfig looks like this:

`sessionConfig: {
type: null,
secret: 'ThisIsNotSecret',

redis: {
host: '',
port: ''
}
},`

I don't understand what I'm doing wrong. Any help will be appreciative.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the failing Docker command and inspect lib/rest/auth.js at line 27, then trace how config.js supplies sessionConfig. Confirm the container loads the expected configuration and that the command completes without the undefined-property error while using the configured secret.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.