hildogjr / KiCost

Build cost spreadsheet for a KiCad project.
MIT License
494 stars 97 forks source link

1.1.4 KiCost stalling and not loading component data. #479

Closed BillyPocketNC closed 3 years ago

BillyPocketNC commented 3 years ago

I hope this is helpful for other KiCost users when KiCost stalls and will not get prices on components. I edited the api_partinfo_kitspace.py line 69 to get KiCost working.

Before: QUERY_URL = 'https://dev-partinfo.kitspace.org/graphql' After: QUERY_URL = 'https://partinfo.kitspace.org/graphql'

Found fix here, but there is not a new release to fix this problem yet.

partinfo.kitspace.org is pingable - maybe we need to remove the "dev-" part!

Originally posted by @mdeweerd in https://github.com/xesscorp/KiCost/issues/457#issuecomment-814271394

mdeweerd commented 3 years ago

It's not clear what is going on because it was also requested to not use 'https://partinfo.kitspace.org/graphql' which is in fact cached data that is never updated.

set-soft commented 3 years ago

Yes KitSpace maintainer asked not to use the cache server.

I sent an email to @kasbah he will tell us what's the problem.

kasbah commented 3 years ago

That's right, the main partinfo API (without dev-) is the one used for the component popups on https://kitspace.org itself. We don't use any of the pricing info there so we cache it aggressively. It's not going to be very useful to get current prices.

jhaand commented 3 years ago

I'm glad to see that Kicost works again as expected.

kasbah commented 3 years ago

The main issue with it stopping working is that we have a limit of 5000 Octopart requests per month. This is shared between Kitspace, KiCost and HorizonEDA use. If you we want to contribute towards increasing the limit you can do so through our Open Collective.