Is it possible to skip or add a nice message to the user when trying to access services like Kitspace?
See original GitHub issueUsing v1.1.5
# Getting part data from KitSpace...
Starting new HTTPS connection (1): dev-partinfo.kitspace.org:443
https://dev-partinfo.kitspace.org:443 "POST /graphql HTTP/1.1" 504 192
Progress: 0%| | 0/52 [01:01<?, ?part/s]Traceback (most recent call last):
File "/usr/local/bin/kicost", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/kicost/__main__.py", line 306, in main
kicost(in_file=args.input, eda_name=args.eda,
File "/usr/local/lib/python3.8/dist-packages/kicost/kicost.py", line 251, in kicost
api_partinfo_kitspace.query_part_info(parts, distributor_dict, currency)
File "/usr/local/lib/python3.8/dist-packages/kicost/distributors/api_partinfo_kitspace.py", line 366, in query_part_info
get_part_info(queries[slc], query_parts[slc], query_part_stock_code[slc])
File "/usr/local/lib/python3.8/dist-packages/kicost/distributors/api_partinfo_kitspace.py", line 208, in get_part_info
results = api_partinfo_kitspace.query(query, distributors)
File "/usr/local/lib/python3.8/dist-packages/kicost/distributors/api_partinfo_kitspace.py", line 146, in query
raise Exception('One of the internal Kitspace services may experiencing problems. Contact the Kitspace support.')
Exception: One of the internal Kitspace services may experiencing problems. Contact the Kitspace support.
Progress: 0%| | 0/52 [01:01<?, ?part/s]
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
Control message storage & access - Google Support
Open your phone's Settings Settings . · Tap Apps & notifications and then Advanced and then Permission manager and then SMS. If you...
Read more >Access your messages on all your Apple devices
In the Messages app on your Mac, choose Messages > Settings, then click iMessage. Click Settings, then select Enable Messages in iCloud. The...
Read more >FoodSaver Compact Vacuum Sealer with Bags and ... - Target
Read reviews and buy FoodSaver Compact Vacuum Sealer with Bags and Roll Starter Kit, Space-Saving Vacuum Sealer Machine - Black at Target.
Read more >Indian Creek Warming Hut - National Park Service
Be prepared to set up an emergency shelter. Bring a first-aid kit, space blanket, extra clothing, and headlamp. Carry and know how to...
Read more >37 Thank You for Your Order Messages, Templates & Images
How to use these customer thank you note templates ... There is also a word list at the end if you want to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, we need some code revision for warning and error messages. I did some in past but stil missing a lot.
KiCost emerged a cost tool the
--no_price
was a feature add after so users that just want the part list of the BOM.I always run with
--debug 10
to get some hint at which part is failing.The number of requests to Kitspace is shared amongst the users. Therefor, I also recommend using
--no_price
while you are cleaning up your BOM and check prices only later when you are confident that you part numbers and variants are correctly set up.