-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Part scans in add bulk inventory but fails in single part scan #132
Comments
indeed it should work in both - are you on the latest v2.3.1? I'll try it myself and see if I can repro it |
Yep, 2.3.1. |
I think I found the problem here. It seems sometimes it fails to decode the barcode, and sends the raw barcode string to the api which is incorrect. Should be able to fix this and include in today's release |
…ys, and copy/paste. Also reworked inventory page barcode requests so it is consistent in bulk scan. added BOM csv export option. additional BOM features added.
Looking into this again today, I'm suspecting an MS Edge difference from Chrome, which would be weird as they are both based on Chromium. They keyboard handling is complex, but I did a bunch of work to make both use the same code but some of it relies on how the browser handles keyboard input. I'll let you know shortly |
Given your reference to Chrome, I thought perhaps it was a short term workaround so I could get moving but I tried it and see the same error. Note that the end of the following error message (like the one in the capture I previously posted) are characters from the last thing I typed or copied which are appended to the error message which apparently was sent in the request message: |
I'm still retesting this one. I'm not sure if it's a difference of keyrate, or if there is a timing issue somewhere. It looks like somehow it's getting through the barcode input scanning module completely, and it's trying to search that as a part number. As if the text went right to the search input and didn't get filtered like its supposed to. Will keep plugging away at it |
Since the scanner is acting as keyboard input, somehow you have to know how much of the input buffer is valid. Perhaps that mechanism is reading too much?
Tim
…________________________________
From: Michael Brown ***@***.***>
Sent: Wednesday, March 29, 2023 6:07:58 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Author ***@***.***>
Subject: Re: [replaysMike/Binner] Part scans in add bulk inventory but fails in single part scan (Issue #132)
I'm still retesting this one. I'm not sure if it's a difference of keyrate, or if there is a timing issue somewhere. It looks like somehow it's getting through the barcode input scanning module completely, and it's trying to search that as a part number. As if the text went right to the search input and didn't get filtered like its supposed to. Will keep plugging away at it
—
Reply to this email directly, view it on GitHub<#132 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AY2JAWJMKY2DV4UUVEGDQHLW6TMG5ANCNFSM6AAAAAAWFQ7B2U>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This issue has been handed off to DigiKey support for the moment, there's something funny about this part label as there are extra GS & RS characters at the end that shouldn't be there. I'm going to try and make an update to prevent this from coming out this way, but it's failing to be translated by the DigiKey 2d barcode API. |
@TWM617 can you reply to this message and scan that barcode on your end into the message? I don't know if it's just the way the message is displayed in that |
The part I don’t understand is that Bulk Inventory adds work flawlessly. Well anyway, here it is:
[)>▲06↔J2DA5B02E.F7714D73.93C6D152.7F652D6B5032↔PAZ1117EH-3.3TRG1DICT-ND↔1PAZ1117EH-3.3TRG1↔9D1719↔14Z170507↔1TH510592.U1↔4LCN↔11ZPREPACK↔15Z1.0.1↔12Z5001336↔Q000000001↔13Z000000↔▲
From: Michael Brown ***@***.***>
Sent: Thursday, March 30, 2023 7:03 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Mention ***@***.***>
Subject: Re: [replaysMike/Binner] Part scans in add bulk inventory but fails in single part scan (Issue #132)
@TWM617 <https://github.com/TWM617> can you reply to this message and scan that barcode on your end into the message? I don't know if it's just the way the message is displayed in that No part information banner, or if your scanner is outputting some of the characters a little different. I noticed the third character is a triangle '▲', when it should be a '>' character. This might be the cause of the funny output that I can't trigger over here - DigiKey api issue aside.
—
Reply to this email directly, view it on GitHub <#132 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AY2JAWPEJ6LSAPHH5H7Z2ZLW6Y3PBANCNFSM6AAAAAAWFQ7B2U> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AY2JAWKBKXTFI5FCOMKMTATW6Y3PBA5CNFSM6AAAAAAWFQ7B2WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSY4GWOS.gif> Message ID: ***@***.*** ***@***.***> >
|
I don't understand it either. There are 2 code paths for the behavior, but they are almost entirely the same. Need to find a way to repro it on my end |
…assing barcode scans to the part info endpoint
I hate to say it but this problem still exists. Scans perfectly in bulk add scan but fails in single part add scan. The error message for single part scan is different now but the submit to Digikey still fails. The scan error message returns this: No part information is available for '[)▲06↔J2DA5B02E.F7714D73.93C6D152.7F652D6B5032↔PAZ1117EH-3.3TRG1DICT-ND↔1PAZ1117EH-3.3TRG1↔9D1719↔14Z170507↔1TH510592.U1↔4LCN↔11ZPREPACK↔15Z1.0.1↔12Z5001336↔Q000000001↔13Z000000↔▲'. Barcode scanner test returns this: { |
I'm not giving up on this issue. Interesting. This barcode wasn't detected as invalid even though it does on my barcode scanner. I see an extra RS character that's on the end, but it's missing the extra GS character shown on my barcode scanner. Will plug away at this again as the priority issue. |
Maybe my scanner is the problem? It is a good one (not cheap, highly rated on Amazon). I could ask the support folks to fix something if I knew exactly what to ask for. They have been very responsive.
Tim
…________________________________
From: Michael Brown ***@***.***>
Sent: Sunday, April 2, 2023 1:01:55 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Mention ***@***.***>
Subject: Re: [replaysMike/Binner] Part scans in add bulk inventory but fails in single part scan (Issue #132)
I'm not giving up on this issue. Interesting. This barcode wasn't detected as invalid even though it does on my barcode scanner. I see an extra RS character that's on the end, but it's missing the extra GS character shown on my barcode scanner. Will plug away at this again as the priority issue.
—
Reply to this email directly, view it on GitHub<#132 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AY2JAWOLI2JKRIWBVSFKF4LW7HLLHANCNFSM6AAAAAAWFQ7B2U>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I think even if that was the case, I should create support for making it
work. There are so many barcode scanners out there that all have different
default settings. I don’t know if other part labels from DigiKey have other
bugs, but it should be possible for me to make it work. I’m going to plug
away at some more fixes and try for a quick release maybe tomorrow.
…On Sun, Apr 2, 2023 at 1:05 PM TWM617 ***@***.***> wrote:
Maybe my scanner is the problem? It is a good one (not cheap, highly rated
on Amazon). I could ask the support folks to fix something if I knew
exactly what to ask for. They have been very responsive.
Tim
________________________________
From: Michael Brown ***@***.***>
Sent: Sunday, April 2, 2023 1:01:55 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Mention ***@***.***>
Subject: Re: [replaysMike/Binner] Part scans in add bulk inventory but
fails in single part scan (Issue #132)
I'm not giving up on this issue. Interesting. This barcode wasn't detected
as invalid even though it does on my barcode scanner. I see an extra RS
character that's on the end, but it's missing the extra GS character shown
on my barcode scanner. Will plug away at this again as the priority issue.
—
Reply to this email directly, view it on GitHub<
#132 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AY2JAWOLI2JKRIWBVSFKF4LW7HLLHANCNFSM6AAAAAAWFQ7B2U
>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATJ54SWKW7X2YPQTQEZ673W7HLZVANCNFSM6AAAAAAWFQ7B2U>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
…atrix barcodes with invalid RS/GS encoding
…atrix barcodes with invalid RS/GS encoding
Hoping that v2.3.4 fixes this issue for good :) |
Yep, that did it! Yay! And thanks for wrestling this to the ground.
Tim.
From: Michael Brown ***@***.***>
Sent: Monday, April 3, 2023 5:53 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Mention ***@***.***>
Subject: Re: [replaysMike/Binner] Part scans in add bulk inventory but fails in single part scan (Issue #132)
Hoping that v2.3.4 <https://github.com/replaysMike/Binner/releases/tag/v2.3.4> fixes this issue for good :)
—
Reply to this email directly, view it on GitHub <#132 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AY2JAWMNMQT2SXLXJ2BTTGLW7NWF5ANCNFSM6AAAAAAWFQ7B2U> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AY2JAWOXXK6X3QFI7TYUY5LW7NWF5A5CNFSM6AAAAAAWFQ7B2WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSZD3DLK.gif> Message ID: ***@***.*** ***@***.***> >
|
No prob, glad we finally got it. If you run into any more problematic labels let me know. Going to scan in some mouser and arrow stuff this week, hopefully those are easy |
When I scan to add a single part it fails 5 times in a row. I then scan the same part in bulk add and it succeeds 5 times in a row. Not sure why there is a difference.
![IMG_1339](https://user-images.githubusercontent.com/104108121/227294781-c484e482-c5c1-4706-ab47-8dbf2e74a0a0.JPG)
The text was updated successfully, but these errors were encountered: