Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

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

Open
ps2-controller opened this issue Nov 1, 2019 · 3 comments

Comments

@ps2-controller
Copy link

ps2-controller commented Nov 1, 2019

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)
@oed
Copy link
Member

oed commented Nov 7, 2019

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?

@ps2-controller
Copy link
Author

openBox

@oed
Copy link
Member

oed commented Nov 8, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants