galmiklos

Results 9 comments of galmiklos

I added a few lines to scrape.py to debug http traffic, and this is what I saw. ``` (inventree-part-import) gal@roki:~/.config/inventree_part_import$ inventree-part-import --supplier mouser 603-RC0603FR-07150KL (only 1 of 5 available supplier...

After analyzing the request in Firefox, I managed to put together a curl command, that Mouser actually responded with an html payload, not just the HTTP 403 error. ``` (inventree-part-import)...

I found a simple workaround to this problem. As I start understanding the principles of InvenTree a little bit more (it's been only I few days I installed it, and...

I added 'firefox' as browser_cookies in suppliers.yaml to both lcsc and mouser, and tried to import a random mouser part. It failed like this. ``` (inventree-part-import-1.8) gal@roki:~$ inventree-part-import -s mouser...

If I change `timeout=self.request_tiimeout` to `timeout=10.0` in supplier_lcsc.py in line 145, it works. Apparently self.request_timeout is not initialized there yet somehow.

Instead of just brutally using a hard coded number as timeout, I think I found the correct solution. I modified base.py, so it looks like this. ``` class ScrapeSupplier(Supplier): session:...

It works with 0.17.7, I can import the same BOM. I thought I could expect the same in the dev release, too. ![Image](https://github.com/user-attachments/assets/c3106ff4-1ef5-473b-ae41-a4aa01325a69) ![Image](https://github.com/user-attachments/assets/6ab0987e-45f7-4d3e-b29d-7bbb778a5b20) ![Image](https://github.com/user-attachments/assets/2ed53139-91af-4d07-a363-91dc5c51d8f6) Most of the parts are...

Thank you for the advice, for now I went back to the stable release, and imported my BOM. I am not closing this issue, in case you want to keep...

Yes, it is important, I would like to be able to import parts without having to know the PKs, just as it works now in the current stable release. I...