The first transaction Benefactory sends is to create a contract identity for the user. Metamask successfully signs and broadcasts that transaction. The second transaction sets a user's pledge in a very simple contract. When that transaction is sent, Metamask's in page provider throws an error:
index.js:47 Uncaught Error: StreamProvider - Unknown response id
StreamProvider._onResponse @ index.js:47
StreamProvider._write @ index.js:66
doWrite @ _stream_writable.js:319
writeOrBuffer @ _stream_writable.js:308
Writable.write @ _stream_writable.js:246
ondata @ _stream_readable.js:531
EventEmitter.emit @ events.js:77
readableAddChunk @ _stream_readable.js:198
Readable.push @ _stream_readable.js:157
Transform.push @ _stream_transform.js:123
(anonymous function) @ obj-multiplex.js:16
Transform._read @ _stream_transform.js:159
Transform._write @ _stream_transform.js:147
doWrite @ _stream_writable.js:313
writeOrBuffer @ _stream_writable.js:302
Writable.write @ _stream_writable.js:241
ondata @ _stream_readable.js:543
EventEmitter.emit @ events.js:77
readableAddChunk @ _stream_readable.js:210
Readable.push @ _stream_readable.js:169
LocalMessageDuplexStream._onMessage @ local-message-stream.js:35
If I kill the Metamask process and relaunch it, this error does not occur. The transaction gets mined by TestRPC (but the state of the contract doesn't change according to my UI, suggesting another problem).
I usually get this error on the second transaction, but sometimes TestRPC gives me an invalid JUMP error that I've been interpreting as nonce too low. This could be a race condition with Metamask's NonceTrackerSubprovider.
The first transaction Benefactory sends is to create a contract identity for the user. Metamask successfully signs and broadcasts that transaction. The second transaction sets a user's pledge in a very simple contract. When that transaction is sent, Metamask's in page provider throws an error:
If I kill the Metamask process and relaunch it, this error does not occur. The transaction gets mined by TestRPC (but the state of the contract doesn't change according to my UI, suggesting another problem).
I usually get this error on the second transaction, but sometimes TestRPC gives me an
invalid JUMPerror that I've been interpreting as nonce too low. This could be a race condition with Metamask's NonceTrackerSubprovider.