Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Purchase still pending #543

Open
IcePee opened this issue Sep 9, 2017 · 0 comments
Open

Purchase still pending #543

IcePee opened this issue Sep 9, 2017 · 0 comments

Comments

@IcePee
Copy link

IcePee commented Sep 9, 2017

Brief Description:
I've bought something and payed for it. OB still things payment is pending even though the payment was confirmed on the block chain. And the vendor can also see the payment in their client.
Operating System (OS and version): Server: Ubuntu 15.10 Client: Solydkee rolling (Linux)
OpenBazaar version: Server: 0.2.6 (from git) Client: 1.1.13 (from deb)
Hardware: Server: lxc container Client: eliteboot 8460p

Reproducible (Always / Almost Always / Sometimes / Rarely / Couldn't Reproduce):
Always. This is my only purchase. But this always happens.

Steps to reproduce:

  1. Start up server using: python openbazaard.py start -a 0.0.0.0
  2. Startup client
  3. Log into server
  4. Press Ctrl+K to list purchases.
  5. Click Pay for this Purchase

Observed Behavior:
In the client, the item is shown. On the server, I get:
`Unhandled error in Deferred:
2017-09-09 18:30:09+0100 [-] Unhandled error in Deferred:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1194, in run
self.mainLoop()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1203, in mainLoop
self.runUntilCurrent()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 825, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/task.py", line 239, in call
d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- ---
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred
result = f(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmq_fallback.py", line 36, in poll
while self.poll_once():
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmq_fallback.py", line 45, in poll_once
self._cb(data, more)
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmqbase.py", line 126, in frame_received
self.on_raw_message(id, command, data)
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmqbase.py", line 54, in on_raw_message
self.trigger_callbacks(id, *res)
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmqbase.py", line 89, in trigger_callbacks
self._subscriptionstx_id
File "/home/josh/OpenBazaar-Server/api/restapi.py", line 1255, in history_fetched
return_order()
File "/home/josh/OpenBazaar-Server/api/restapi.py", line 1247, in return_order
request.write(json.dumps(sanitize_html(order), indent=4))
File "/usr/local/lib/python2.7/dist-packages/twisted/web/server.py", line 213, in write
http.Request.write(self, data)
File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 896, in write
raise RuntimeError('Request.write called on a request after '
exceptions.RuntimeError: Request.write called on a request after Request.finish was called.
2017-09-09 18:30:09+0100 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1194, in run
self.mainLoop()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1203, in mainLoop
self.runUntilCurrent()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 825, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/task.py", line 239, in call
d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- ---
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred
result = f(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmq_fallback.py", line 36, in poll
while self.poll_once():
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmq_fallback.py", line 45, in poll_once
self._cb(data, more)
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmqbase.py", line 126, in frame_received
self.on_raw_message(id, command, data)
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmqbase.py", line 54, in on_raw_message
self.trigger_callbacks(id, *res)
File "/usr/local/lib/python2.7/dist-packages/obelisk/zmqbase.py", line 89, in trigger_callbacks
self._subscriptionstx_id
File "/home/josh/OpenBazaar-Server/api/restapi.py", line 1255, in history_fetched
return_order()
File "/home/josh/OpenBazaar-Server/api/restapi.py", line 1247, in return_order
request.write(json.dumps(sanitize_html(order), indent=4))
File "/usr/local/lib/python2.7/dist-packages/twisted/web/server.py", line 213, in write
http.Request.write(self, data)
File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 896, in write
raise RuntimeError('Request.write called on a request after '
exceptions.RuntimeError: Request.write called on a request after Request.finish was called.`

Expected Behavior:
For the purchase to confirm on OB.

Additional info (links, images, etc go here):
My service desk item showing the problem:
Look at: https://openbazaar.zendesk.com/hc/en-us/community/posts/115001278292-Purchasing-Payment-pending-?page=1#community_comment_115000607971

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

1 participant