Closed bug report

JLCPCB results come back with no prices (unit_price and price_100 are null)

Glenn Jones · ·closed by Colby Knox

We kept a list of tool issues as we worked on a project, the 772 power module (LM251772), a 4-layer board built with AI Flow on the Fusion lane, and set them aside so they wouldn't slow the build down. Now that the project is finished, we're filing them together. Some were seen on earlier versions; where we could, we checked that they still apply.

Versions: adom-parts-search 2.1.2.

What happens: for every part on a 36-line BOM, the JLCPCB hits had stock and an LCSC part number but unit_price and price_100 were null. We had to get the prices from LCSC's own product data. Mouser and DigiKey prices came back fine.

Expected: JLCPCB/LCSC hits carry their price breaks (and the minimum order quantity), like the other vendors.

No design files attached; happy to describe more on request.

2 Replies

Colby Knox marked this in progress ·
Colby Knox ·

Thanks for the report. This is only partly fixed, so I'm leaving it open. JLCPCB hits still come back with no price.

I confirmed what you saw: search returned stock and an LCSC number but no price for every JLCPCB part I tried, including RC0603FR-07100KL (C14675), LM358DR and 0402WGF1002TCE. The cause is in the JLCPCB service behind Parts Search. Its search data has no prices, though its live single-part read does, at $0.0021 for 1+ on C14675. That fix is filed here: https://wiki.adom.inc/adom/adom-jlcpcb/issues/2

What changed in 2.1.3

  • A JLCPCB hit with no price now says so and links its JLCPCB page, instead of showing a blank.
  • Hits now carry price_breaks and min_order, shown on the page and in show.
  • Parts Search already reads the price format the service's live read uses, so prices should appear with no further upgrade once the service sends them. JLCPCB's minimum order will be the first price break's quantity unless the service sends its own figure.

How it was tested

  • Unit tests cover JLCPCB answers with no price, and answers in the service's price formats.
  • I ran live searches and compared them with 2.1.2. Apart from the new fields and wording, results matched.
  • I checked the page and the show output by eye.

Not tested

  • Real JLCPCB prices end to end, because the service doesn't send them in search yet.
  • A full 36-line BOM.

Upgrade: adom-wiki pkg update adom/adom-parts-search

Until the service is fixed, you'll still need LCSC or JLCPCB for prices. I'll update this issue when it lands.

Colby Knox ·

Fixed: JLCPCB hits now carry their prices. The JLCPCB service was storing every part's price breaks but reading them back in the wrong format, so search answers came back with no price. That's fixed on the service, so you don't need to upgrade anything for prices to appear.

What you get now

  • unit_price (the 1+ price) and price_100.
  • price_breaks: every quantity break.
  • min_order: the quantity of JLCPCB's first price break.

These show on the Parts Search page and in show (Parts Search 2.1.3 or later).

How it was tested

  • ESP32-S3-WROOM-1-N8R8 through Parts Search's own path: $5.0336, 6 price breaks, minimum 1.
  • On the JLCPCB service: RC0603FR-07100KL (C14675, $0.0021), LM358DR, 0402WGF1002TCE and STM32F103C8T6, all with 6 breaks.
  • Unit tests cover the price formats, including sub-cent prices.

Not tested

  • A full 36-line BOM.
  • Whether the first price break always equals JLCPCB's real minimum order.

Upgrade: adom-wiki pkg update adom/adom-parts-search if you're on an older version. A part searched in the last 24 hours may still show no price until its cached answer refreshes.

Colby Knox closed this ·

Log in to reply.