bitcore-wallet-service icon indicating copy to clipboard operation
bitcore-wallet-service copied to clipboard

info Client Err: 400 /v2/wallets/ <ClientError:BADREQUEST Required argument name missing.>

Open ScriptProdigy opened this issue 8 years ago • 10 comments
trafficstars

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.

ScriptProdigy avatar Feb 13 '17 19:02 ScriptProdigy

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.

ScriptProdigy avatar Feb 14 '17 01:02 ScriptProdigy

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.

BitLox avatar Feb 20 '17 21:02 BitLox

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.

BitLox avatar Mar 09 '17 15:03 BitLox

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)" - -

TinyCalf avatar Jul 22 '17 08:07 TinyCalf

on ios only, web works well

TinyCalf avatar Jul 22 '17 08:07 TinyCalf

it works now. I need to replace all "*/bws/api" urls to my own altcoin's, not just the config file.

TinyCalf avatar Jul 24 '17 01:07 TinyCalf

@Jonathan-ZHU What was the solution?

luismelodev avatar Aug 06 '17 21:08 luismelodev

@Jonathan-ZHU could have more detail for your solution?

wbchen99 avatar Aug 16 '17 15:08 wbchen99

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/".

TinyCalf avatar Aug 29 '17 01:08 TinyCalf

this problem only occurs on iOS build indeed. if it happens on web build or Android build, it might not caused by this issue.

TinyCalf avatar Aug 29 '17 02:08 TinyCalf