replaysMike / Binner

Open source parts inventory system for makers, electronics hobby, and professional engineers
https://binner.io
GNU General Public License v3.0
268 stars 41 forks source link

API ERROR #110

Closed interbiznw closed 1 year ago

interbiznw commented 1 year ago

I have setup digikey api keys why do i get this? Windows install

image

interbiznw commented 1 year ago

tried on linux install too, this is the error on the backend

image

interbiznw commented 1 year ago

cant add inventory locally manually either image

replaysMike commented 1 year ago

I will be back from vacation tomorrow and will take a look.

On Sun, Mar 5, 2023 at 11:34 PM J62 @.***> wrote:

I have setup digikey api keys why do i get this? Windows install

[image: image] https://user-images.githubusercontent.com/16450422/223020142-748c13a9-c48d-496b-ae33-f55b459a3e8c.png

— Reply to this email directly, view it on GitHub https://github.com/replaysMike/Binner/issues/110, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJ54WCCF7BLZRRALCRCCTW2VSMFANCNFSM6AAAAAAVQT5MPQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

interbiznw commented 1 year ago

I will be back from vacation tomorrow and will take a look. On Sun, Mar 5, 2023 at 11:34 PM J62 @.> wrote: I have setup digikey api keys why do i get this? Windows install [image: image] https://user-images.githubusercontent.com/16450422/223020142-748c13a9-c48d-496b-ae33-f55b459a3e8c.png — Reply to this email directly, view it on GitHub <#110>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJ54WCCF7BLZRRALCRCCTW2VSMFANCNFSM6AAAAAAVQT5MPQ . You are receiving this because you are subscribed to this thread.Message ID: @.>

Any idea?

replaysMike commented 1 year ago

I have not seen this before, I'm digging into it right now to see if I can find a way to repro. Is it a new install? Can you post the contents of your appsettings.json file?

replaysMike commented 1 year ago

I see the issue. This was fixed last week, but has not been deployed to a release as of yet. I'll prioritize the current release (v2.2.6) and try to get it out tomorrow.

interbiznw commented 1 year ago

I see the issue. This was fixed last week, but has not been deployed to a release as of yet. I'll prioritize the current release (v2.2.6) and try to get it out tomorrow.

great news, so no further info needed from me? Looking forward to the release as I need to get this setup bad! Thanks!

replaysMike commented 1 year ago

Now available in v2.2.6. Let me know if you are still experiencing the issue

interbiznw commented 1 year ago

Now im getting this on new version... once i click order import a new window opens up and is calling the api.digikey.com url, with client id., etc and correct postback URL.. but then just sits at a new blank order import screen, if I close that one... This is what the original one looks like

image

interbiznw commented 1 year ago

When I test api, it seems to work....... but cant get anything to import

image

interbiznw commented 1 year ago

also cannot get swarm api key....

image

Click on manage and page goes blank, then find this in dev tools

image

interbiznw commented 1 year ago

chromeBinner-_Electronic_Parts_InventoryManagement-_G_xaPEUZWDLM.webm

interbiznw commented 1 year ago

also your website email verification links are fubar'd too..

image

interbiznw commented 1 year ago

Now available in v2.2.6. Let me know if you are still experiencing the issue

@replaysMike Different issues now

interbiznw commented 1 year ago

also can't use any of the drop downs when adding a part, here are those errors

image

if you want to check yourself, you can view this instance @ https://binner.interbiznw.com

replaysMike commented 1 year ago

Are you using any ad blockers? Which browser do you use?

What should happen is a new tab/window should pop up and request access to your DigiKey account which requires you to login. This is a requirement of DigiKey’s api system. After logging in it should redirect you back to the page, at which point you should be able to import your order.

On Fri, Mar 10, 2023 at 10:04 PM J62 @.***> wrote:

Now im getting this on new version... once i click order import a new window opens up and is calling the api.digikey.com url, with client id., etc and correct postback URL.. but then just sits at a new blank order import screen, if I close that one... This is what the original one looks like

[image: image] https://user-images.githubusercontent.com/16450422/224468094-090f0716-169e-48b0-8aef-8072c4a76baf.png

— Reply to this email directly, view it on GitHub https://github.com/replaysMike/Binner/issues/110#issuecomment-1464837499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJ54SOKJ3AH243ZXFHLSDW3QIYNANCNFSM6AAAAAAVQT5MPQ . You are receiving this because you modified the open/close state.Message ID: @.***>

replaysMike commented 1 year ago

Oof, thanks for reporting this. Not sure when this was introduced, serves me right for deploying a feature while on vacation. I’ll get this patched tomorrow, worth noting you don’t need a swarm api key to enable swarm api functionality but nonetheless it needs fixing.

On Fri, Mar 10, 2023 at 10:20 PM J62 @.***> wrote:

also cannot get swarm api key....

[image: image] https://user-images.githubusercontent.com/16450422/224468650-1d0adbc5-ce5e-4f43-aa7a-8edcce61e824.png

Click on manage and page goes blank, then find this in dev tools

[image: image] https://user-images.githubusercontent.com/16450422/224468673-4ae3dc21-e5a2-4458-99d3-5d7caa48b2bd.png

— Reply to this email directly, view it on GitHub https://github.com/replaysMike/Binner/issues/110#issuecomment-1464840035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJ54SPKKGOPQOYIYTRQS3W3QKS3ANCNFSM6AAAAAAVQT5MPQ . You are receiving this because you modified the open/close state.Message ID: @.***>

replaysMike commented 1 year ago

Just verified this as well, I’m going to temporarily pull this release and patch tomorrow. With no UI test pipeline it’s tough to catch some of the more complex functionality changes. Apologies, let’s retry this tomorrow.

On Fri, Mar 10, 2023 at 10:52 PM J62 @.***> wrote:

also can't use any of the drop downs when adding a part, here are those errors

[image: image] https://user-images.githubusercontent.com/16450422/224469886-6bdbffa6-e5f5-4458-bfc0-0c591e687736.png

if you want to check yourself, you can view this instance @ https://binner.interbiznw.com

— Reply to this email directly, view it on GitHub https://github.com/replaysMike/Binner/issues/110#issuecomment-1464844844, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJ54QGXRPZBLYJLBEPFETW3QOLHANCNFSM6AAAAAAVQT5MPQ . You are receiving this because you were mentioned.Message ID: @.***>

interbiznw commented 1 year ago

Are you using any ad blockers? Which browser do you use?

Yes but they are disabled on this domain that i have setup

What should happen is a new tab/window should pop up and request access to your DigiKey account which requires you to login

This does not happen, i can see it opening the api url, with the client id in it, then that url changes back to the binner url

After logging in it should redirect you back to the page, at which point you should be able to import your order

Maybe because I am already logged into digikey? it just returns to the binner url and never shows me any digikey URL.. (also this is on a new tab and the "User must authorize" message is back on the first tab (with no error showing on second tab).

worth noting you don’t need a swarm api key to enable swarm api functionality but nonetheless it needs fixing.

Ohhh I was under the impression I needed a key. Enabled on binner and tested and test passed.

It looks like my import issue may be resolved.. There is a possibility the order number I was trying to import was not an order on the account I was already logged into in my browser.. and since I was already logged in it didnt ask me to login to authorize. Cause I logged out of digikey, and then logged back in, copied my last order number(On that account) and went back to binner and tried to import and it seems to work now.

Although all the drop down's still do not work ( confirmed this does the same thing in a fresh/bare version of chromium with zero addons installed as well)

Apologies, let’s retry this tomorrow.

No problem, thanks for checking into it and fixing! Really looking forward to using this ASAP as my parts situation is a DISASTER

interbiznw commented 1 year ago

mRemoteNGmRemoteNG-confCons.xml-_popOS_8ScObVA2ez.webm

replaysMike commented 1 year ago

What should happen is a new tab/window should pop up and request access to your DigiKey account which requires you to login

This does not happen, i can see it opening the api url, with the client id in it, then that url changes back to the binner url

It would appear that DigiKey does not sometimes display their UI, if your credentials are cached/remembered as valid.

Apologies, let’s retry this tomorrow.

No problem, thanks for checking into it and fixing! Really looking forward to using this ASAP as my parts situation is a DISASTER

As is mine! I've got a box of parts from ebay I still haven't sorted through, and I've been working on making Binner better rather than actually sorting through my thousands of parts! ;D

Binner 2.2.6 release is currently rebuilding, I should have it deployed within 30 minutes and it will appear as the latest release.

interbiznw commented 1 year ago

Binner 2.2.6 release is currently rebuilding, I should have it deployed within 30 minutes and it will appear as the latest release.

Thank you so much!

interbiznw commented 1 year ago

Got the order to import, but still no drop down menus work, cannot change selections

and now when i go into view one of the imported parts, this is what I get

image

interbiznw commented 1 year ago

image

replaysMike commented 1 year ago

Neat this looks like new issue. I'm not sure yet if it's a preexisting issue or something new, as MapTaxonomies has to do with DigiKey's data - maybe something didn't load.

I didn't have any trouble with the dropdowns on a fresh installation, but I do see the backend error you posted after opening a part that was imported via a DigiKey order.

I will patch this today as 2.2.7

replaysMike commented 1 year ago

Version v.2.2.7 is now released and the above issues were patched. Let me know if you still encounter any issues otherwise I can close this

interbiznw commented 1 year ago

Version v.2.2.7 is now released and the above issues were patched. Let me know if you still encounter any issues otherwise I can close this

I will upgrade and check

rfwerk commented 1 year ago

I can confirm 2.2.7 solved the out of bounds on Digikey for me. Still some strange behavior when selecting a part is search. Details areas keep showing a running circle.

interbiznw commented 1 year ago

Yeah api error gone.. it pulls up some of the part details.. where does datasheet/pinouts/circuit supposed to come from? Digikey or swarm?

Oh the drop downs seem to work now too.

replaysMike commented 1 year ago

I can confirm 2.2.7 solved the out of bounds on Digikey for me. Still some strange behavior when selecting a part is search. Details areas keep showing a running circle.

Try disabling the Swarm Api for now. I haven't had a chance to look at it yet but for some reason the service is timing out.

replaysMike commented 1 year ago

Yeah api error gone.. it pulls up some of the part details.. where does datasheet/pinouts/circuit supposed to come from? Digikey or swarm?

Oh the drop downs seem to work now too.

Datasheet/pinouts/circuits come primarily from the Swarm Api, however Digikey also populates some of this information. It's aggregated from all enabled api's. Swarm gets this from Digikey, Mouser using it's own api keys, as well as from it's own crawler that surfs the web for that information. It's very much in beta and I'll be making it much better once I get the current Binner releases stable.

interbiznw commented 1 year ago

@replaysMike quick couple questions..

So i see the ability to add projects, is there no way to add a part to more than one project? (or mutiple projects listed for one part?)... Like a 0.01uF cap, that's gonna be needed in multiple projects.

Also not seeing any way to do anything with the projects, like it says "You will be able to generate part lists and reports by Project." : Am I missing something???

TIA

replaysMike commented 1 year ago

So i see the ability to add projects, is there no way to add a part to more than one project? (or mutiple projects listed for one part?)

correct, currently it’s only one project for a part which I agree is a little useless. It was designed for things like IC’s but it would be way more useful as you described. Also you can click on a Project in the search inventory screen which will list all the parts in the project.

Projects are getting reworked this week as I’m just starting to build BOM management and Projects will be the container for BOM. At this point it will get a lot of new functionality for organizing and tracking parts by project and adjusting stock quantity as PCBs are made with your inventory. This should be waaaay more useful

interbiznw commented 1 year ago

Also you can click on a Project in the search inventory screen which will list all the parts in the project.

not seeing that?

image

Projects are getting reworked this week as I’m just starting to build BOM management and Projects will be the container for BOM. At this point it will get a lot of new functionality for organizing and tracking parts by project and adjusting stock quantity as PCBs are made with your inventory. This should be waaaay more useful

Oh thats good news, yeah guess I will have to wait for that. Without a way to subtract inventory for a project makes it kinda tough

replaysMike commented 1 year ago

oh weird - it must have been removed at some point, I swore it was there lol

I agree. I should have BOM management released by Friday which will be a big update. It will also include support for Arrow's api for those that use it

interbiznw commented 1 year ago

@replaysMike release still today? Sorry for asking, just cant wait for the BOM management! 😁

replaysMike commented 1 year ago

Hi @interbiznw - yup it is! Probably very late in the evening as I’m just finishing up the small details and doing a lot of testing