index.js:311 GET https://beta.3box.io/address-server/odbAddress/0x{address} 404
Describe the bug
box.openBox() seems to be calling sendAsync with invalid arguments on the first try
To Reproduce Steps to reproduce the behavior:
- Clone this repo
- Run
yarn start - Open the console
- Type anything into the input bar to create a unique keypair
- Click the button
- Observe error in the console as well as logging, which shows 3Box
data.params[0]in thesendAsynccall 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)
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?
openBox
Sorry if I was unclear. I meant the method used in the json-rpc call, i.e. data.method.