bitcore-wallet-service
bitcore-wallet-service copied to clipboard
info Client Err: 400 /v2/wallets/ <ClientError:BADREQUEST Required argument name missing.>
No matter what I try, no post data is received on BWS. Tried multiple servers, fresh installs of BWS even fail. I'm clueless, been at this multiple weeks. Anyone have any idea? No matter the client requesting the endpoint, nor what server, always empty post data.. Not running ssl, thought maybe thats an issue but as far as I can tell it defaults to no ssl.
Use case is for Copay, though even from postman same issues, no errors. On bws just shows that none of whatever the first post data the request needs isn't there.
I had this happen - but ONLY on iOS builds, not Android. Very peculiar. Trying to talk to my own BWS server - only thing in the master branch that was altered was the bws address. Android can create walleys during the startup, iOS fails.
Copay[436:78446] Creating Wallet: {"m":1,"n":1,"networkName":"livenet"} Copay[436:78446] Unknown error type: BADREQUEST: Required argument name missing. Copay[436:78446] WARN: Unknown error type: BADREQUEST: Required argument name missing. Copay[436:78446] Error creating wallet: BADREQUEST: Required argument name missing. Copay[436:78446] WARN: Error creating wallet: BADREQUEST: Required argument name missing. Copay[436:78446] Retrying to create default wallet.....:1 Copay[436:78446] WARN: Retrying to create default wallet.....:1 Copay[436:78446] ongoingProcess creatingWallet true Copay[436:78446] Creating Wallet: {"m":1,"n":1,"networkName":"livenet"} Copay[436:78446] Unknown error type: BADREQUEST: Required argument name missing.
Etc. etc.
It would appear that iOS will only talk properly to the BWS instance if using ssl. I installed an ssl cert from Let's Encrypt and now everything works fine.
doesn't work for me, i successfully run on https://myserver/bws/api, and my server still shows me this err: info Client Err: 400 /v2/wallets/ {"code":"BADREQUEST","message":"Required argument name missing."} ::ffff:60.29.18.50 2017-07-22T08:34:46.025Z "POST /bws/api/v2/wallets/" 400 65 9005.843 "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 (140730020414064)" - -
on ios only, web works well
it works now. I need to replace all "*/bws/api" urls to my own altcoin's, not just the config file.
@Jonathan-ZHU What was the solution?
@Jonathan-ZHU could have more detail for your solution?
oh,sorry, du... first you should setup SSL for the website like BitLox said. Second, search the whole directory for "bws/api" and replace it with the url of the bws you've build on your own. For example: "https://bws.example.com/bws/api/".
this problem only occurs on iOS build indeed. if it happens on web build or Android build, it might not caused by this issue.