3box-js icon indicating copy to clipboard operation
3box-js copied to clipboard

index.js:311 GET https://beta.3box.io/address-server/odbAddress/0x{address} 404

Open ps2-controller opened this issue 6 years ago • 3 comments

Describe the bug box.openBox() seems to be calling sendAsync with invalid arguments on the first try

To Reproduce Steps to reproduce the behavior:

  1. Clone this repo
  2. Run yarn start
  3. Open the console
  4. Type anything into the input bar to create a unique keypair
  5. Click the button
  6. Observe error in the console as well as logging, which shows 3Box data.params[0] in the sendAsync call as undefined.

Errors are of this form: https://beta.3box.io/address-server/odbAddress/0x8e8ae9a4abfa16d6c2eb3c1926dbebf5612cdb49

Please review code to reproduce in App.js file - AFAIK there shouldn't be any errors.

Expected behavior 3box would request a signature to open a box from the Ethereum provider included in the source code, which would recognize the request through the sendAsync call, and sign the appropriate parameters.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac OS Mojave version: 10.14.5 (18F2058)
  • Browser Chrome: Version 76.0.3809.132 (Official Build) (64-bit)

ps2-controller avatar Nov 01 '19 20:11 ps2-controller

Thanks for a great bug report @ps2-controller! Do you know which method (data.method´) is being called with the data.params[0]` being empty?

oed avatar Nov 07 '19 15:11 oed

openBox

ps2-controller avatar Nov 08 '19 02:11 ps2-controller

Sorry if I was unclear. I meant the method used in the json-rpc call, i.e. data.method.

oed avatar Nov 08 '19 07:11 oed