Jump to content

BrickSync, synchronization software between BrickLink and BrickOwl


Stragus

Recommended Posts

Hi all,

 

After some beta testing, I have recently shared my software to synchronize inventory between the BrickLink and BrickOwl marketplaces. It runs on a seller's own computer, handles orders both ways, everything is saved as BrickStock compatible BSX files, and it should be rock solid against anything (even yanking on the ethernet cable in the middle of an update, a power cut while writing a file, etc.). So, there it is:
http://www.bricksync.net/

My original plan was to make it open-source and donation-supported, but various people commented that very few people would donate if they could avoid it. Well, they were probably right! So, the only limitation is that a seller with over 250000 items will be kindly invited to support BrickSync, otherwise a little math question/puzzle will be asked to check for new orders. (I still plan to release the code under a General Public License if the donations reach a certain amount.)

So, better plan ahead for the extra workload of doubled sales! And If you become rich and famous thanks to the software, please remember that it's primarily donation supported. :) Thanks.

Stragus

post-32143-0-62785800-1414171770_thumb.p

  • Like 2
Link to comment
Share on other sites

BrickSync works great.  Now we just need to convince the Macks that the forthcoming brick trader needs an API.  Then we can go with a 3-way sync.

Eheh, adding new services for synchronization would be easy at this point. We'll see how serious they want BrickTrader to become...
Link to comment
Share on other sites

  • 5 months later...

 

1. I used the "loadall" command to get all of our bulk quantities uploaded. It worked. What I want to ask for: is it also possible to upload all of our "% off" (BrickLink) / "Sale %" (BrickOwl) data? At BL we have different discounts for each part. I would like to use them also for BO.

Sale percentages are not synchronized due to... historical reasons. For a long time, the BrickLink API couldn't do it, then some sellers expressed they liked being able to run different sales on each matketplace.

 

2. The BrickSync Screen actually looks like this (Gallery). There are several warnings. What I have to do to solve these problems?

I can't see that screenshot. Just open the log file (in data/logs) and copy/paste the warning you refer to. I'm assuming these are unresolved BLIDs?

You are welcome!

Link to comment
Share on other sites

Hi Stragus,

 

thank you so much for your fast reply!

 

Here some text from the log file:

 

========== Log Start ~ 2015-03-26 18:05:12 ==========

[...]

 

18:05:14 INFO: Software version : 1.5.0 - Mar 23 2015 16:50:02.
18:05:14 INFO: Tracked inventory : 237580 items in 4240 lots.
18:05:14 INFO: Inventory sale price : [...]
18:05:14 INFO: BrickSync registration status : Unregistered.
18:05:14 INFO: Autocheck mode is currently : Enabled.
18:05:14 INFO: BrickLink polling interval : 10 minutes.
18:05:14 INFO: BrickOwl polling interval  : 10 minutes.
18:05:14 INFO: Time of last BrickLink order check : 2015-03-26 11:01:29 (7 hours, 3 minutes, 44 seconds ago).
18:05:14 INFO: Time of last BrickOwl order check  : 2015-03-26 10:56:28 (7 hours, 8 minutes, 45 seconds ago).
18:05:14 INFO: Time of last BrickLink deep sync   : 2015-03-26 11:02:35 (7 hours, 2 minutes, 38 seconds ago).
18:05:14 INFO: Time of last BrickOwl deep sync    : 2015-03-26 09:10:20 (8 hours, 54 minutes, 53 seconds ago).
18:05:14 INFO: BrickLink has pending updates : False.
18:05:14 INFO: BrickOwl has pending updates  : False.
18:05:14 INFO: BrickLink in sync : False.
18:05:14 INFO: BrickOwl in sync  : False.
18:05:14 INFO: BrickLink API usage : 152 (3.04%) in the past 24 hours; 0 in the past hour.
18:05:14 INFO: BrickOwl API usage  : 12318 in the past 24 hours; 0 in the past hour.
18:05:14 INFO: Fetching the latest BrickSync broadcast message...
18:05:15 LOG: New BrickSync message received, UID 1427142082, priority 1
18:05:15 INFO: We are running the latest version of BrickSync : 1.5.0
18:05:15 INFO: There's a new BrickSync broadcast message with priority LOW.
18:05:15 INFO: Type "message" to read the message.
18:05:15 DEBUG: Entering bsQueryBrickOwlLookupBoids()
18:05:15 DEBUG: Exiting bsQueryBrickOwlLookupBoids()
18:05:15 DEBUG: Watchdog thread is active.
18:05:15 INFO: BrickSync state saved. All systems are operational, Captain!
18:05:15 INFO: Type "help" for the list of commands.
18:05:15 INFO: Fetching the BrickLink Order List...
18:05:17 BL JSON PARSER: Server replied with error code 401.
18:05:17 BL JSON PARSER: Server error message : "BAD_OAUTH_REQUEST".
18:05:17 BL JSON PARSER: Server error description : "TOKEN_IP_MISMATCHED: consumer: AFECC9B8A91B428A8BC889A3D4C7A3BC IP: 79.237.137.181".
18:05:17 JSON Parse Errors Encountered
18:05:17 WARNING: BrickLink JSON Parse Error - Saving server reply (161+150 bytes) at path "dataerrors-2015-03-2600362.txt".
18:05:17 WARNING: Bad reply from server, trying again shortly...
18:05:17 BL JSON PARSER: Server replied with error code 401.
18:05:17 BL JSON PARSER: Server error message : "BAD_OAUTH_REQUEST".
18:05:17 BL JSON PARSER: Server error description : "TOKEN_IP_MISMATCHED: consumer: AFECC9B8A91B428A8BC889A3D4C7A3BC IP: 79.237.137.181".
18:05:17 JSON Parse Errors Encountered
18:05:17 WARNING: BrickLink JSON Parse Error - Saving server reply (161+150 bytes) at path "dataerrors-2015-03-2600363.txt".
18:05:17 WARNING: Bad reply from server, trying again shortly...
18:05:17 ERROR: Too many connection errors, giving up.
18:05:17 INFO: Fetching the BrickOwl Order List...
18:05:19 INFO: We are up-to-date on BrickOwl orders.
18:05:19 INFO: Fetching the BrickLink Order List...
18:05:19 BL JSON PARSER: Server replied with error code 401.
18:05:19 BL JSON PARSER: Server error message : "BAD_OAUTH_REQUEST".
18:05:19 BL JSON PARSER: Server error description : "TOKEN_IP_MISMATCHED: consumer: AFECC9B8A91B428A8BC889A3D4C7A3BC IP: 79.237.137.181".
18:05:19 JSON Parse Errors Encountered
18:05:19 WARNING: BrickLink JSON Parse Error - Saving server reply (161+150 bytes) at path "dataerrors-2015-03-2600364.txt".
18:05:19 WARNING: Bad reply from server, trying again shortly...
18:05:20 BL JSON PARSER: Server replied with error code 401.
18:05:20 BL JSON PARSER: Server error message : "BAD_OAUTH_REQUEST".
18:05:20 BL JSON PARSER: Server error description : "TOKEN_IP_MISMATCHED: consumer: AFECC9B8A91B428A8BC889A3D4C7A3BC IP: 79.237.137.181".
18:05:20 JSON Parse Errors Encountered
18:05:20 WARNING: BrickLink JSON Parse Error - Saving server reply (161+150 bytes) at path "dataerrors-2015-03-2600365.txt".
18:05:20 WARNING: Bad reply from server, trying again shortly...
18:05:20 ERROR: Too many connection errors, giving up.
 

Link to comment
Share on other sites

Hi Stragus,

 

thank you so much for your fast reply!

 

Here some text from the log file:

...

18:05:17 BL JSON PARSER: Server error message : "BAD_OAUTH_REQUEST".

18:05:17 BL JSON PARSER: Server error description : "TOKEN_IP_MISMATCHED: consumer: AFECC9B8A91B428A8BC889A3D4C7A3BC IP: 79.237.137.181".

...

 

Right, that's question #5 of the FAQ, question aptly named "Heeelllp! BrickLink is throwing me BAD_OAUTH_REQUEST, SIGNATURE_INVALID and/or TOKEN_IP_MISMATCHED errors!" :)

http://www.bricksync.net/guidefaq.html#faqblapikey

 

Answer:

You created a BrickLink API key that was restricted to a IP submask, and then your IP address changed. Create a BrickLink API key with an "allowed IP" and "mask IP" both set to 0.0.0.0

Link to comment
Share on other sites

I think we have successfully sync'ed our stores.  If anyone has a moment to check out our store on Brick Owl, we are the Mitten Brick Company.  We have been on Brick Link for about a year, and are anxious to be a part of the Brick Owl community.  I'm still learning my way around the site and trying to get everything set up, but please let me know if you notice something I need to address.

 

Thanks!

Link to comment
Share on other sites

please let me know if you notice something I need to address.

I noticed a small detail! :) You have a shipping method set for Worldwide except the US, and another one for Canada. I shouldn't have to choose between them to ship to Canada, so better make the first one Worldwide except US and Canada.

 

Welcome to BrickOwl!

Link to comment
Share on other sites

I noticed a small detail! :) You have a shipping method set for Worldwide except the US, and another one for Canada. I shouldn't have to choose between them to ship to Canada, so better make the first one Worldwide except US and Canada.

Welcome to BrickOwl!

Thanks!

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...