anonimongo
anonimongo copied to clipboard
`Error: unhandled exception: cannot read from stream` with --passl:-laws-cpp-sdk-core
when true: # D20200814T190741
import pkg/anonimongo
import std/sha1
let uriserver = "mongodb+srv://myuser:[email protected]/admin?ssl=true"
var mongo = newMongo(uri = uriserver, poolconn = 2)
mongo.slaveOk
doAssert waitfor mongo.connect
nim cpp -r -d:ssl main.nim # works
nim cpp -r -d:ssl --passl:-laws-cpp-sdk-core main.nim # fails
# see error log below
note:
- I'm on OSX
- I need
-laws-cpp-sdk-core
for the rest of my application - that's installed through
brew install aws-sdk-cpp
(aws-sdk-cpp 1.7.290, but also after brew upgrade aws-sdk-cpp to install latest 1.8.20)
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(23) sendOpsNimAsyncContinue
/Users/timothee/git_clone/nim/anonimongo/src/anonimongo/core/utils.nim(33) sendOpsIter
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(248) getReply
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(26) getReplyNimAsyncContinue
/Users/timothee/git_clone/nim/anonimongo/src/anonimongo/core/wire.nim(172) getReplyIter
/Users/timothee/git_clone/nim/anonimongo/src/anonimongo/core/bson.nim(103) msgHeaderFetch
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/streams.nim(620) readInt32
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/streams.nim(411) read
[[reraised from:
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(26) sendOpsNimAsyncContinue
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(275) sendOpsIter
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncfutures.nim(383) read
]]
[[reraised from:
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(26) sendOpsNimAsyncContinue
/Users/timothee/git_clone/nim/anonimongo/src/anonimongo/core/utils.nim(30) sendOpsIter
]]
[[reraised from:
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(23) handshakeNimAsyncContinue
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(275) handshakeIter
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncfutures.nim(383) read
]]
[[reraised from:
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(23) connectNimAsyncContinue
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(275) connectIter
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncfutures.nim(383) read
]]
[[reraised from:
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1934) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncfutures.nim(383) read
]]
Error: unhandled exception: cannot read from stream
Async traceback:
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(23) sendOpsNimAsyncContinue
/Users/timothee/git_clone/nim/anonimongo/src/anonimongo/core/utils.nim(33) sendOpsIter
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(248) getReply
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(26) getReplyNimAsyncContinue
/Users/timothee/git_clone/nim/anonimongo/src/anonimongo/core/wire.nim(172) getReplyIter
/Users/timothee/git_clone/nim/anonimongo/src/anonimongo/core/bson.nim(103) msgHeaderFetch
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/streams.nim(620) readInt32
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/streams.nim(411) read
#[
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(26) sendOpsNimAsyncContinue
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(275) sendOpsIter
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncfutures.nim(383) read
]#
#[
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(26) sendOpsNimAsyncContinue
/Users/timothee/git_clone/nim/anonimongo/src/anonimongo/core/utils.nim(30) sendOpsIter
]#
#[
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(23) handshakeNimAsyncContinue
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(275) handshakeIter
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncfutures.nim(383) read
]#
#[
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11095.nim(217) t11095
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1932) waitFor
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1624) poll
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(1365) runOnce
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncdispatch.nim(208) processPendingCallbacks
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(23) connectNimAsyncContinue
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncmacro.nim(275) connectIter
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/asyncfutures.nim(383) read
]#
Exception message: cannot read from stream
Exception type: [IOError]