1
2
Fork
You've already forked auto-encrypt
3

Random crash (race condition?) #25

Closed
opened 2026年01月20日 13:26:02 +01:00 by aral · 0 comments
Owner
Copy link

Sometimes when running tests (seems to occur when running the tests for @small-tech/https), I’m hitting the following error:

file:///Users/aral/Projects/other/auto-encrypt/lib/AcmeRequest.js:262
 protectedHeader.jwk = AcmeRequest.accountIdentity.publicJWK
 ^
TypeError: Cannot read properties of null (reading 'publicJWK')
 at NewAccountRequest.prepare (file:///Users/aral/Projects/other/auto-encrypt/lib/AcmeRequest.js:262:57)
 at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
 at async NewAccountRequest.request (file:///Users/aral/Projects/other/auto-encrypt/lib/AcmeRequest.js:107:29)
 at async NewAccountRequest.execute (file:///Users/aral/Projects/other/auto-encrypt/lib/acme-requests/NewAccountRequest.js:23:22)
 at async Account.init (file:///Users/aral/Projects/other/auto-encrypt/lib/Account.js:67:19)
 at async Account.getInstanceAsync (file:///Users/aral/Projects/other/auto-encrypt/lib/Account.js:37:7)
 at async file:///Users/aral/Projects/other/auto-encrypt/lib/Certificate.js:227:27
 at async #initialiseAcmeRequest (file:///Users/aral/Projects/other/auto-encrypt/lib/Certificate.js:231:9)
 at async Certificate.checkForRenewal (file:///Users/aral/Projects/other/auto-encrypt/lib/Certificate.js:362:5)
Node.js v24.6.0

Likely a race condition.

Sometimes when running tests (seems to occur when running the tests for @small-tech/https), I’m hitting the following error: ``` file:///Users/aral/Projects/other/auto-encrypt/lib/AcmeRequest.js:262 protectedHeader.jwk = AcmeRequest.accountIdentity.publicJWK ^ TypeError: Cannot read properties of null (reading 'publicJWK') at NewAccountRequest.prepare (file:///Users/aral/Projects/other/auto-encrypt/lib/AcmeRequest.js:262:57) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async NewAccountRequest.request (file:///Users/aral/Projects/other/auto-encrypt/lib/AcmeRequest.js:107:29) at async NewAccountRequest.execute (file:///Users/aral/Projects/other/auto-encrypt/lib/acme-requests/NewAccountRequest.js:23:22) at async Account.init (file:///Users/aral/Projects/other/auto-encrypt/lib/Account.js:67:19) at async Account.getInstanceAsync (file:///Users/aral/Projects/other/auto-encrypt/lib/Account.js:37:7) at async file:///Users/aral/Projects/other/auto-encrypt/lib/Certificate.js:227:27 at async #initialiseAcmeRequest (file:///Users/aral/Projects/other/auto-encrypt/lib/Certificate.js:231:9) at async Certificate.checkForRenewal (file:///Users/aral/Projects/other/auto-encrypt/lib/Certificate.js:362:5) Node.js v24.6.0 ``` Likely a race condition.
Sign in to join this conversation.
No Branch/Tag specified
main
ip-address-support
ari-fix
jose-1.28.2-to-6.1.3-upgrade
ARI
2.x
5.1.0
5.0.1
5.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
small-tech/auto-encrypt#25
Reference in a new issue
small-tech/auto-encrypt
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?