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

Connection failed to default

Open coreanachina opened this issue 9 years ago • 12 comments

Brief Description:

Operating System (windows10): OpenBazaar version: OpenBazaar-1.1.6_Setup_x64 Hardware: lenovo x240s

Reproducible (Always):

Steps to reproduce:

  1. After installation,open the openbazaar,then shows "Connection failed to default"

Observed Behavior:Connection failed to default

Expected Behavior:

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

coreanachina avatar Jun 18 '16 13:06 coreanachina

@Drwasho maybe you can help here? Windows.

hoffmabc avatar Jun 23 '16 11:06 hoffmabc

I have the same error on my mac..

Egmondt avatar Jun 29 '16 19:06 Egmondt

Same issue here. I've uninstalled, reinstalled to no avail.

Linux 64-bit

ExtensionThomas avatar Jul 06 '16 18:07 ExtensionThomas

Okay, guys. This is what I did: Uninstall OB > Allow windows to show hidden files > Go to: C:\Users[Username]\AppData\Local then > delete OpenBazaar > install OB.

This worked for me.

If you are on mac, try the same thing; maybe it will work:

uninstall> go to: /usr/share delete file OB. then install again

HOPE THIS HELPED - IF IT DID, PLEASE TELL ME.. !!!

Kaden14 avatar Aug 10 '16 17:08 Kaden14

that last step, installing OB, explain. Just fully delete the file and re-install?

Just tried that, didnt do it for me... :/ Still failing to connect to default. On a fresh download, havnt been able to get things working, ever. Windows 7 I also tried installing the 32 bit instead of 64 bit, thought it might help, it didnt.

HappyHead avatar Aug 11 '16 02:08 HappyHead

I have 1.1.7, also a fresh install, and havnt been able to resolve the issue. I cant connect with the default server.

The dev tools say this on the console page: C:\Users[Username]\AppData\Local\OpenBazaar\app-1.1.7\resources\app.asar\js\utils\Socket.js:30 WebSocket connection to 'ws://localhost:18470/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

The path listed above is highlighted as a link, clicking on it, im shown this: (function (exports, require, module, __filename, __dirname, process, global) { 'use strict';

var __ = require('underscore'), Backbone = require('backbone');

function Socket(url) { if (!url) { throw new Error('Please provide an url.'); }

__.extend(this, Backbone.Events);

this.url = url; this.connect(); }

Socket.prototype.connect = function(url) { var self = this;

this.url = url || this.url;

if (this._socket) { this._socket.onopen = null; this._socket.onclose = null; this._socket.onerror = null; this._socket.onmessage = null; this._socket.close(); }

this._socket = new WebSocket(this.url); this._proxyEvent('onopen'); this._proxyEvent('onclose'); this._proxyEvent('onerror');

this._socket.onmessage = function() { var args = Array.apply(null, arguments);

if (args[0] && args[0].data) { args[0].jsonData = JSON.parse(args[0].data); }

self.trigger.apply(self, ['message'].concat(Array.apply(null, args)));

}; };

Socket.prototype._proxyEvent = function(event) { var self = this;

this._socket[event] = function() { self.trigger.apply(self, [event.slice(2)].concat(Array.apply(null, arguments))); }; };

Socket.prototype.close = function() { this._socket.close.apply(this._socket, arguments); };

Socket.prototype.send = function() { this._socket.send.apply(this._socket, arguments); };

Socket.prototype.getReadyState = function() { return this._socket.readyState; };

module.exports = Socket; });

HappyHead avatar Aug 11 '16 04:08 HappyHead

thanks a lot

coreanachina avatar Aug 11 '16 05:08 coreanachina

@HappyHead

do this

Kaden14 avatar Aug 11 '16 13:08 Kaden14

Do this step ^^^^ after uninstalling..

Then after deleting OpenBazaar, reinstall.

@coreanachina Did it work?

Kaden14 avatar Aug 11 '16 13:08 Kaden14

@Kaden14 Idon't know,my problem had resoved though i don't konw the reason.

coreanachina avatar Aug 11 '16 16:08 coreanachina

@Kaden14 It's really worked!I just tried.Anyway,thank you very much.

coreanachina avatar Aug 15 '16 09:08 coreanachina

hey i know this is an old thread but thought i'd give it a shot. uninstalling and deleting the folder and reinstalling didn't do anything. seems like i need to make a new server configuration. i'm guessing OB is one of those platforms that doesn't yet "just work" haha

whitestmonkey avatar Jan 04 '17 03:01 whitestmonkey