Skip to content
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

[Bug]: Barcode scanning bug on Add Part page #305

Open
replaysMike opened this issue Jan 24, 2025 · 3 comments
Open

[Bug]: Barcode scanning bug on Add Part page #305

replaysMike opened this issue Jan 24, 2025 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@replaysMike
Copy link
Owner

Binner version

v2.6.3

Operating System

Windows 11

Describe the bug and the steps to reproduce it

When scanning a DigiKey part label to add the part to Binner, a BadRequest error is displayed even though the DigiKey api result returned the part. This appears to be a UI bug but needs further investigation. Not all parts encountered this issue.

The part appeared in the UI along with the error message (see screenshot)

Would you like to attach your appsetings.json configuration?

No response

Screenshots or Videos (Optional, but they help!)

Image

Are you able to contribute a PR? (No is ok!)

None

@replaysMike replaysMike added the bug Something isn't working label Jan 24, 2025
@replaysMike replaysMike added this to the v2.6.4 milestone Jan 24, 2025
@replaysMike replaysMike self-assigned this Jan 24, 2025
@wdtj
Copy link

wdtj commented Jan 27, 2025

Fresh install of binner (as well as trying this on the web site). Using NetumScan NSLS scanner with default settings. Set up Digikey Client ID and Secrets.

When I attempt to scan a DigiKey Part Label I get the error:

Image

@wdtj
Copy link

wdtj commented Jan 27, 2025

appsettings - Copy.json

@wdtj
Copy link

wdtj commented Jan 27, 2025

Ran output of scanner through cat and xxd (i.e. dumped the text in hex/ascii) and got this:

$ cat | xxd.exe
[)>06PBINNER ESD1PJ112-D26Z30PJ112-D26ZCT-NDK1K8982380910K1086008309D24161TGR160030AB11K14LCNQ2011ZPICK12Z350450613Z99999920Z00000000000000000000000000000000000
00000000: 5b29 3e1b 5b32 307e 3036 1b5b 3139 7e50  [)>.[20~06.[19~P
00000010: 4249 4e4e 4552 2045 5344 1b5b 3139 7e31  BINNER ESD.[19~1
00000020: 504a 3131 322d 4432 365a 1b5b 3139 7e33  PJ112-D26Z.[19~3
00000030: 3050 4a31 3132 2d44 3236 5a43 542d 4e44  0PJ112-D26ZCT-ND
00000040: 1b5b 3139 7e4b 1b5b 3139 7e31 4b38 3938  .[19~K.[19~1K898
00000050: 3233 3830 391b 5b31 397e 3130 4b31 3038  23809.[19~10K108
00000060: 3630 3038 3330 1b5b 3139 7e39 4432 3431  600830.[19~9D241
00000070: 361b 5b31 397e 3154 4752 3136 3030 3330  6.[19~1TGR160030
00000080: 4142 1b5b 3139 7e31 314b 311b 5b31 397e  AB.[19~11K1.[19~
00000090: 344c 434e 1b5b 3139 7e51 3230 1b5b 3139  4LCN.[19~Q20.[19
000000a0: 7e31 315a 5049 434b 1b5b 3139 7e31 325a  ~11ZPICK.[19~12Z
000000b0: 3335 3034 3530 361b 5b31 397e 3133 5a39  3504506.[19~13Z9
000000c0: 3939 3939 391b 5b31 397e 3230 5a30 3030  99999.[19~20Z000
000000d0: 3030 3030 3030 3030 3030 3030 3030 3030  0000000000000000
000000e0: 3030 3030 3030 3030 3030 3030 3030 3030  0000000000000000
000000f0: 3030 3030 3030 3030 3030 3030 3030 3030  0000000000000000
00000100: 3030 3030 3030 3030 3030 3030 3030 3030  0000000000000000
00000110: 3030 3030 3030 3030 3030 3030 3030 3030  0000000000000000
00000120: 3030 3030 3030 3030 301b 5b32 307e 1b5b  000000000.[20~.[

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants