OpenBazaar-Server icon indicating copy to clipboard operation
OpenBazaar-Server copied to clipboard

Data could not be retrieved [object Object]

Open gehlm opened this issue 10 years ago • 11 comments

Brief Description: Click on "Order #5e94859f3f8e2d7f130d17da0baebc0df601f37e" displays error message, "Data could not be retrieved [object Object]".

Operating System (OS and version): Ubutnu 15.10 OpenBazaar version: Version 1.0.6 Hardware:

Reproducible (Always / Almost Always / Sometimes / Rarely / Couldn't Reproduce): Always

Steps to reproduce:

  1. Create "service" product

Observed Behavior: Error dialog.

Expected Behavior: Details of paid order. Should display ship to address, and a description of the "service"

Additional info (links, images, etc go here):

http://imgur.com/a/34TAu

gehlm avatar Mar 02 '16 22:03 gehlm

I think this is somehow related to a failure in libbitcoin-client. If you can find a stack trace that would help.

cpacia avatar Mar 02 '16 23:03 cpacia

Why are we using libbitcoin again? Why not use SPV nodes?

JustinDrake avatar Mar 03 '16 00:03 JustinDrake

It might be able to do SPV. I wrote an (incomplete) SPV library. https://github.com/cpacia/pybitcoin

The issue is mainly that the moderator can't look up a transaction and get the inputs if it's SPV (since he doesn't learn of the funding tx until after it confirms). I suppose we could have either party to the dispute just send over the inputs and have the moderator just sign them without looking up the tx in the chain.

cpacia avatar Mar 03 '16 00:03 cpacia

That's a lot of work though to make that library work 100%.

cpacia avatar Mar 03 '16 00:03 cpacia

What's wrong with using an off-the-self SPV library (instead of starting from scratch)?

JustinDrake avatar Mar 03 '16 05:03 JustinDrake

There aren't any good python ones AFAIK.

drwasho avatar Mar 03 '16 06:03 drwasho

@drwasho Are we restricting ourselves to Python? Seems like a wasted opportunity.

JustinDrake avatar Mar 03 '16 09:03 JustinDrake

We're already python based for the backend. But, show me a good alternative that is cross-platform? And don't suggest anything with Java.

drwasho avatar Mar 03 '16 11:03 drwasho

We could wrap a c++ or Java version but kind of annoying if we are just turning around to use it with Python.

hoffmabc avatar Mar 03 '16 12:03 hoffmabc

@drwasho: https://github.com/jgarzik/picocoin? C binds very easily to Python

JustinDrake avatar Mar 03 '16 14:03 JustinDrake

this should fixed now.

cpacia avatar Mar 03 '16 19:03 cpacia