ceramicnetwork / ceramicnetwork/js-ceramic
TypeError: Cannot destructure property 'controllers' of 'payload.header' as it is undefined.
- Dominant language
- TypeScript
- Stars
- 423
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I'm running a Ceramic node that's interacted with via ComposeDB. I am getting occasional errors when applying a commit to stream:
```
Error while applying commit bafyreihg7r2zsfxpeulbrowt73fn2itjqpo2icuppnax3pqigoykdnkixq to stream null: TypeError: Cannot destructure property 'controllers' of 'payload.header' as it is undefined.
```
And also:
```
TypeError: Cannot read properties of null (reading 'anchorStatus')
```
I'm not sure if the two are related. It seems strrange that stream is `null` in this instance too.
**Logs**
```
Nov 01 07:35:14 discourse-graph-demo ceramic[31031]: [2022-11-01T07:35:14.245Z] ERROR: TypeError: Cannot read properties of null (reading 'anchorStatus')
Nov 01 07:35:14 discourse-graph-demo ceramic[31031]: [2022-11-01T07:35:14.245Z] WARNING: Error while applying commit bafyreihg7r2zsfxpeulbrowt73fn2itjqpo2icuppnax3pqigoykdnkixq to stream null: TypeError: Cannot destructure property 'controllers' of 'payload.header' as it is undefined.
Nov 01 07:35:13 discourse-graph-demo ceramic[31031]: [2022-11-01T07:35:13.943Z] WARNING: Error while applying commit bafyreifgukatwmlbaaumzzv5rnn5crzwoklowwivkccbqveacclxqxzkce to stream null: TypeError: Cannot destructure property 'controllers' of 'payload.header' as it is undefined.
Nov 01 07:35:13 discourse-graph-demo ceramic[31031]: [2022-11-01T07:35:13.942Z] WARNING: Error while applying commit bagcqceraiwjfa3wfjk4lekvgsd5d7d3ubtirh3ewvd5ahzlrhzjobkdlxxyq to stream null: Error: Can not verify signature for commit bagcqceraiwjfa3wfjk4lekvgsd5d7d3ubtirh3ewvd5ahzlrhzjobkdlxxyq: CACAO has expired
```
**Ceramic versions**
`2.8.0`
**Machine, OS, browser information (please complete the following information):**
Ubuntu 18.04.6 LTS
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.