Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Error: Request Error: attempt to unlock read lock, not locked by current thread at Object.requestError #534

Closed
AaronVasquez opened this issue Feb 9, 2018 · 1 comment

Comments

@AaronVasquez
Copy link

Calling sendTrytes or sendTransfers from the iota.lib.js client

Error: Request Error: attempt to unlock read lock, not locked by current thread
    at Object.requestError (/home/oyster/hooknode/node_modules/iota.lib.js/lib/errors/requestErrors.js:11:12)
    at makeRequest.prepareResult (/home/oyster/hooknode/node_modules/iota.lib.js/lib/utils/makeRequest.js:293:24)
    at exports.XMLHttpRequest.request.onreadystatechange (/home/oyster/hooknode/node_modules/iota.lib.js/lib/utils/makeRequest.js:71:25)
    at exports.XMLHttpRequest.dispatchEvent (/home/oyster/hooknode/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:591:25)
    at setState (/home/oyster/hooknode/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:610:14)
    at IncomingMessage.<anonymous> (/home/oyster/hooknode/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:447:13)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1055:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
@romansemko
Copy link
Contributor

Also seeing this. 99% when doing "getTransactionsToApprove" using field.carriota.com load balancer:

'attempt to unlock read lock, not locked by current thread'.

romansemko added a commit to romansemko/iri that referenced this issue Feb 22, 2018
The unlocking already happens in the getTransactionsToApproveStatement, line 619 in API.java. A fail here would try to double-unlock, causing this cryptic error.
@th0br0 th0br0 mentioned this issue Feb 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants