-
-
Notifications
You must be signed in to change notification settings - Fork 37
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]: "Mounting Type" Error #191
Comments
This continues to be a showstopper for me. I can't add any parts to inventory via scanning. I went to Settings and increased the buffer time to 200 mS and the test scan now picks up the quantity but the scan to add to inventory still shows just a quantity of 1. Also the mounting type still cannot be set and because of that I can't save the part to inventory. BTW - I am willing to ship you my scanner so you can use it for debugging if that helps since I am stuck and cannot proceed until this problem is fixed. |
sorry I haven't been able to focus on this yet, was tied up with a large feature. I'll take a look into this now and see if I can repro and address it |
yup you're right, it's doing exactly that. It's not related to the barcode scan itself, these are inventory page bugs related to a complex performance update for the page I've been struggling with. Fix coming out shortly. |
neat - first time I've seen this. This part comes from DigiKey as having a mounting type of both Surface Mount and Through Hole. Not sure how a part can have both, but apparently DigiKey thinks so! |
fixed in v2.5.6 which should be out shortly. |
Let me know if v2.5.6 fixes your issue |
Something broke with 2.5.6. When I launch it, the busy twirlie spins forever. When I went to add inventory there is also a nonstop twirlie.
From: Michael Brown ***@***.***>
Sent: Thursday, May 11, 2023 3:37 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Author ***@***.***>
Subject: Re: [replaysMike/Binner] [Bug]: "Mounting Type" Error (Issue #191)
Let me know if v2.5.6 <https://github.com/replaysMike/Binner/releases/tag/v2.5.6> fixes your issue
—
Reply to this email directly, view it on GitHub <#191 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AY2JAWP7IKXXGBMCAMR7MFDXFVSYFANCNFSM6AAAAAAXWAJRKY> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AY2JAWLBEFLQBHWXW5CE5HTXFVSYFA5CNFSM6AAAAAAXWAJRK2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS4CN4FM.gif> Message ID: ***@***.***>
|
Well that’s no good. Taking a look, surprised as it was fairly well tested.
…On Thu, May 11, 2023 at 4:44 PM TWM617 ***@***.***> wrote:
Something broke with 2.5.6. When I launch it, the busy twirlie spins
forever. When I went to add inventory there is also a nonstop twirlie.
From: Michael Brown ***@***.***>
Sent: Thursday, May 11, 2023 3:37 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Author ***@***.***>
Subject: Re: [replaysMike/Binner] [Bug]: "Mounting Type" Error (Issue #191)
Let me know if v2.5.6 <
https://github.com/replaysMike/Binner/releases/tag/v2.5.6> fixes your
issue
—
Reply to this email directly, view it on GitHub <
#191 (comment)>
, or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AY2JAWP7IKXXGBMCAMR7MFDXFVSYFANCNFSM6AAAAAAXWAJRKY>
.
You are receiving this because you authored the thread. <
https://github.com/notifications/beacon/AY2JAWLBEFLQBHWXW5CE5HTXFVSYFA5CNFSM6AAAAAAXWAJRK2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS4CN4FM.gif>
Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATJ54WTXSTVML4VIAAZSNLXFV2XFANCNFSM6AAAAAAXWAJRKY>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
I haven't been able to repro yet, but I'm also checking with others on Discord to see if anyone else is experiencing this |
I redownloaded the Windows 64 install .exe and reinstalled it. Same result with Edge. Neither Firefox nor Chrome will even get that far. They both report that they cannot connect. I have not thus far had to disable my anti-virus when doing installs but I did this time just in case. No joy.
From: Michael Brown ***@***.***>
Sent: Thursday, May 11, 2023 5:08 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Author ***@***.***>
Subject: Re: [replaysMike/Binner] [Bug]: "Mounting Type" Error (Issue #191)
I haven't been able to repro yet, but I'm also checking with others on Discord to see if anyone else is experiencing this
—
Reply to this email directly, view it on GitHub <#191 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AY2JAWJRIMNV6SPOGEZ3HDTXFV5OFANCNFSM6AAAAAAXWAJRKY> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AY2JAWNE7DEJUQ37MYERUL3XFV5OFA5CNFSM6AAAAAAXWAJRK2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS4CWD5C.gif> Message ID: ***@***.*** ***@***.***> >
|
I checked Services and it did not show Binner as running so I started it. Here is the result:
From: Michael Brown ***@***.***>
Sent: Thursday, May 11, 2023 5:08 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Author ***@***.***>
Subject: Re: [replaysMike/Binner] [Bug]: "Mounting Type" Error (Issue #191)
I haven't been able to repro yet, but I'm also checking with others on Discord to see if anyone else is experiencing this
—
Reply to this email directly, view it on GitHub <#191 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AY2JAWJRIMNV6SPOGEZ3HDTXFV5OFANCNFSM6AAAAAAXWAJRKY> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AY2JAWNE7DEJUQ37MYERUL3XFV5OFA5CNFSM6AAAAAAXWAJRK2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS4CWD5C.gif> Message ID: ***@***.*** ***@***.***> >
|
ok thanks, I asked on Discord and no one else seems to be having issues so we at least know the issue is isolated to your installation. Can you check the log file in C:\Binner\Binner.log and C:\Binner\Binner.Microsoft.log ? There may be a clue in there as to what the error is |
I installed Binner on a different system where it had never run before and I get a slightly different error. A command screen flashes momentarily and disappears before O can read what it says. When I check the services, Binner is not running and when I try to start it, I get the same error as on the other system.
Binner.log:
2023-05-12 16:00:45.2076|INFO|Program|Installing service Binner...|
2023-05-12 16:00:45.2163|INFO|Program|Binner service installed.|
2023-05-12 16:00:45.8097|INFO|Binner.Web.ServiceHost.BinnerWebHostService|Loading configuration at C:\Program Files\Binner\appsettings.json|
2023-05-12 16:00:45.8242|ERROR|Binner.Web.ServiceHost.BinnerWebHostService|Configuration value WebHostServiceConfiguration.Integrations.Arrow.ApiKey= is invalid. |
2023-05-12 16:00:45.8242|ERROR|Binner.Web.ServiceHost.BinnerWebHostService|Binner had an error starting up!|Binner.Common.BinnerConfigurationException: Configuration value WebHostServiceConfiguration.Integrations.Arrow.ApiKey= is invalid.
at Binner.Common.Configuration.ConfigurationValidator.ConfigAssert(String name, Object value, String message) in C:\projects\binner\Binner\Library\Binner.Common\Configuration\ConfigurationValidator.cs:line 91
at Binner.Common.Configuration.ConfigurationValidator.ValidateConfiguration(WebHostServiceConfiguration config) in C:\projects\binner\Binner\Library\Binner.Common\Configuration\ConfigurationValidator.cs:line 57
at Binner.Web.ServiceHost.BinnerWebHostService.InitializeWebHostAsync() in C:\projects\binner\Binner\Binner.Web\ServiceHost\BinnerWebHostService.cs:line 104
There is no Microsoft log.
There is a Binner-internal.log:
2023-05-12 16:00:45.1404 Info Message Template Auto Format enabled
2023-05-12 16:00:45.1521 Info Adding target FileTarget(Name=file)
2023-05-12 16:00:45.1521 Info Adding target FileTarget(Name=microsoftfile)
2023-05-12 16:00:45.1521 Info Adding target FileTarget(Name=locale)
2023-05-12 16:00:45.1521 Info Adding target ColoredConsoleTarget(Name=console)
2023-05-12 16:00:45.1521 Info Adding target NullTarget(Name=BlackHole)
2023-05-12 16:00:45.1685 Info Validating config: Targets=5, ConfigItems=120, FilePath=C:\Program Files\Binner\nlog.config
2023-05-12 16:00:45.2163 Info AppDomain Shutting down. Logger closing...
2023-05-12 16:00:45.2163 Info Logger has been shut down.
2023-05-12 16:00:45.4664 Info Message Template Auto Format enabled
2023-05-12 16:00:45.4797 Info Adding target FileTarget(Name=file)
2023-05-12 16:00:45.4797 Info Adding target FileTarget(Name=microsoftfile)
2023-05-12 16:00:45.4797 Info Adding target FileTarget(Name=locale)
2023-05-12 16:00:45.4797 Info Adding target ColoredConsoleTarget(Name=console)
2023-05-12 16:00:45.4957 Info Adding target NullTarget(Name=BlackHole)
2023-05-12 16:00:45.4957 Info Validating config: Targets=5, ConfigItems=120, FilePath=C:\Program Files\Binner\nlog.config
2023-05-12 16:00:45.7169 Info Message Template Auto Format enabled
2023-05-12 16:00:45.7169 Info Adding target FileTarget(Name=file)
2023-05-12 16:00:45.7329 Info Adding target FileTarget(Name=microsoftfile)
2023-05-12 16:00:45.7329 Info Adding target FileTarget(Name=locale)
2023-05-12 16:00:45.7329 Info Adding target ColoredConsoleTarget(Name=console)
2023-05-12 16:00:45.7469 Info Adding target NullTarget(Name=BlackHole)
2023-05-12 16:00:45.7469 Info Validating config: Targets=5, ConfigItems=120, FilePath=C:\Program Files\Binner\nlog.config
2023-05-12 16:00:45.8017 Info Configuring from an XML element in C:\Program Files\Binner\nlog.config...
2023-05-12 16:00:45.8017 Info Message Template Auto Format enabled
2023-05-12 16:00:45.8017 Info Adding target FileTarget(Name=file)
2023-05-12 16:00:45.8097 Info Adding target FileTarget(Name=microsoftfile)
2023-05-12 16:00:45.8097 Info Adding target FileTarget(Name=locale)
2023-05-12 16:00:45.8097 Info Adding target ColoredConsoleTarget(Name=console)
2023-05-12 16:00:45.8097 Info Adding target NullTarget(Name=BlackHole)
2023-05-12 16:00:45.8097 Info Closing old configuration.
2023-05-12 16:00:45.8097 Info Validating config: Targets=5, ConfigItems=120, FilePath=C:\Program Files\Binner\nlog.config
2023-05-12 16:00:45.8242 Info AppDomain Shutting down. Logger closing...
2023-05-12 16:00:45.8242 Info Logger has been shut down.
2023-05-12 16:00:55.9641 Info AppDomain Shutting down. Logger closing...
2023-05-12 16:00:55.9641 Info Logger has been shut down.
From: Michael Brown ***@***.***>
Sent: Friday, May 12, 2023 12:30 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Author ***@***.***>
Subject: Re: [replaysMike/Binner] [Bug]: "Mounting Type" Error (Issue #191)
ok thanks, I asked on Discord and no one else seems to be having issues so we at least know the issue is isolated to your installation. Can you check the log file in C:\Binner\Binner.log and C:\Binner\Binner.Microsoft.log ? There may be a clue in there as to what the error is
—
Reply to this email directly, view it on GitHub <#191 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AY2JAWNEUSLQTLG33BHNAE3XF2FTVANCNFSM6AAAAAAXWAJRKY> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AY2JAWILIJUVKTFHXPKTZKTXF2FTVA5CNFSM6AAAAAAXWAJRK2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS4FD4XQ.gif> Message ID: ***@***.*** ***@***.***> >
|
ah that should be an easy fix. It looks like Arrow = Enabled, but has no API key specified. Configuration validation was added to the service startup, to prevent issues when using Binner in a docker container. If you have any APIs that are enabled but not configured, disabling them should fix the problem. I will need to consider whether that should be considered an error condition or not. |
btw, to do that since you can't do it in the UI, is just edit your "Integrations": {
"Arrow": {
"Enabled": false,
"ApiKey": "",
"Username": "",
"ApiUrl": "https://api.arrow.com"
},
}, |
There is no “Arrow” section in my appsettings.json (but perhaps you knew that) so I added what you supplied. Now the Binner Service is running. However, when I type localhost:8090 I get a message saying that “localhost didn’t send any data” and the screen is blank. I am doing this on my other system. I will also try it on my primary system and let you know (I have no supplier APIs configured on this system and I don’t know if that is the issue or not).
From: Michael Brown ***@***.***>
Sent: Friday, May 12, 2023 4:30 PM
To: replaysMike/Binner ***@***.***>
Cc: TWM617 ***@***.***>; Author ***@***.***>
Subject: Re: [replaysMike/Binner] [Bug]: "Mounting Type" Error (Issue #191)
btw, to do that since you can't do it in the UI, is just edit your C:\Program Files\Binner\appsettings.json file and set "Enabled" = false for the problem setting in the "Integrations" section.
"Integrations": {
"Arrow": {
"Enabled": false,
"ApiKey": "",
"Username": "",
"ApiUrl": "https://api.arrow.com"
},
},
—
Reply to this email directly, <#191 (comment)> view it on GitHub, or <https://github.com/notifications/unsubscribe-auth/AY2JAWNLXDL2T3CHST2SG3DXF3BV7ANCNFSM6AAAAAAXWAJRKY> unsubscribe.
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AY2JAWMGY27RDRHRWFHLOFDXF3BV7A5CNFSM6AAAAAAXWAJRK2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS4FSUFG.gif> Message ID: < ***@***.***> ***@***.***>
|
Not sure why the other system had no Arrow section but my primary system does and I changed the enabled to false then restarted Binner. It seems to be working fine.
Just my opinion but it seems that all integrations should be false by default until they are configured by the user which would avoid this problem.
From: ***@***.*** ***@***.***>
Sent: Friday, May 12, 2023 5:01 PM
To: 'replaysMike/Binner' ***@***.***>; 'replaysMike/Binner' ***@***.***>
Cc: 'Author' ***@***.***>
Subject: RE: [replaysMike/Binner] [Bug]: "Mounting Type" Error (Issue #191)
There is no “Arrow” section in my appsettings.json (but perhaps you knew that) so I added what you supplied. Now the Binner Service is running. However, when I type localhost:8090 I get a message saying that “localhost didn’t send any data” and the screen is blank. I am doing this on my other system. I will also try it on my primary system and let you know (I have no supplier APIs configured on this system and I don’t know if that is the issue or not).
From: Michael Brown ***@***.*** ***@***.***> >
Sent: Friday, May 12, 2023 4:30 PM
To: replaysMike/Binner ***@***.*** ***@***.***> >
Cc: TWM617 ***@***.*** ***@***.***> >; Author ***@***.*** ***@***.***> >
Subject: Re: [replaysMike/Binner] [Bug]: "Mounting Type" Error (Issue #191)
btw, to do that since you can't do it in the UI, is just edit your C:\Program Files\Binner\appsettings.json file and set "Enabled" = false for the problem setting in the "Integrations" section.
"Integrations": {
"Arrow": {
"Enabled": false,
"ApiKey": "",
"Username": "",
"ApiUrl": "https://api.arrow.com"
},
},
—
Reply to this email directly, <#191 (comment)> view it on GitHub, or <https://github.com/notifications/unsubscribe-auth/AY2JAWNLXDL2T3CHST2SG3DXF3BV7ANCNFSM6AAAAAAXWAJRKY> unsubscribe.
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AY2JAWMGY27RDRHRWFHLOFDXF3BV7A5CNFSM6AAAAAAXWAJRK2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS4FSUFG.gif> Message ID: < ***@***.***> ***@***.***>
|
After making this change, Binner now runs and the original problem reported is now fixed. I consider this issue closed. |
oh wow - you did however reveal an unexpected bug. With the Arrow section missing it should have been disabled (all missing integrations should be) but there is a code level default that sets it to true. That isn't correct and has been changed - thanks for spotting this! |
I think I should also spend some time writing a way to merge new configuration settings that are introduced. Your configuration probably predates these newer settings (from a few months ago), so any new configurations won't automatically be inserted into your config (because its kinda complex to implement, but I think it's time). |
Binner version
v2.5.4
Operating System
Windows 10 64
Describe the bug and the steps to reproduce it
When I scan the following barcode, the mounting type is not set so I cannot save the part in inventory and when I select the proper type, SMD, then leave the textbox it reverts back to "Mounting Type". Scans also aren't picking up the quantity.
Would you like to attach your appsetings.json configuration?
No response
Screenshots or Videos (Optional, but they help!)
No response
Are you able to contribute a PR? (No is ok!)
None
The text was updated successfully, but these errors were encountered: