ERROR undefined:assertion when querying /v1/txhistory


(Ajay Jadhav) #1

We just upgraded our app code to Copay 3.1.3 with our own BWS v1.15 instance on the back-end. The wallet gets created successfully, however we are getting following error when the app queries BWS for the transaction history of newly created wallet.

106.210.143.106 2017-04-26T09:35:03.017Z "GET /bws/api/v2/wallets/?includeExtendedInfo=0&twoStep=1&r=27993" 200 - 1472.582 "Mozilla/5.0 (Linux; Android 6.0; Lenovo K50a40 Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 Mobile Safari/537.36" 178c24ab-8819-4970-8324-ae0cd85dd2a6 cac5bfb65a67cb0d605bcc63fcf49c2b614be280e277c0e767a7af097212385a
ERR! /v1/txhistory/?limit=5&r=98025 :undefined:assertion src/mongo/db/query/index_bounds_builder.cpp:862

106.210.143.106 2017-04-26T09:35:03.049Z "GET /bws/api/v1/txhistory/?limit=5&r=98025" 500 69 1422.901 "Mozilla/5.0 (Linux; Android 6.0; Lenovo K50a40 Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 Mobile Safari/537.36" 178c24db-8819-4970-8324-ae9bf85dd2a6 cac5bab65a94cb0d605baa63fccd9c2b614be280e277cef747a7af847212385a
ERR! /v1/txhistory/?limit=5&r=31647 :undefined:assertion src/mongo/db/query/index_bounds_builder.cpp:862

Is it something to do with the MongoDb version?

I have already posted this issue on GitHub.


(Jeshan Babooa) #2

I posted a workaround on the github issue.