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]: #301

Open
sq9wis opened this issue Oct 26, 2024 · 0 comments
Open

[Bug]: #301

sq9wis opened this issue Oct 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sq9wis
Copy link

sq9wis commented Oct 26, 2024

Binner version

2.6.40

Operating System

Windows 10

Describe the bug and the steps to reproduce it

API error while adding new components

Failed to fetch part information! An exception occurred of type Newtonsoft.Json.JsonSerializationException Error converting value "LNK" to type 'Binner.Model.Integrations.Tme.DocumentTypes'. Path 'Data.ProductList[1].Files.DocumentList[0].DocumentType', line 1, position 1168. Base Exception: Requested value 'LNK' was not found.

pi Endpoint: https://binner.io/api/part/info?partNumber=LM393&supplierPartNumbers=digikey:,mouser:,arrow:,tme: at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Binner.Services.Integrations.TmeApi.GetProductFilesAsync(List1 partNumbers) in C:\projects\binner-io\Binner\Library\Binner.Services\Integrations\TmeApi.cs:line 159 at Binner.Services.Integrations.ResponseProcessors.TmePartInfoResponseProcessor.FetchPartsAsync(IIntegrationApi api, ProcessingContext context) in C:\projects\binner-io\Binner\Library\Binner.Services\Integrations\ResponseProcessors\TmePartInfoResponseProcessor.cs:line 105 at Binner.Services.Integrations.ResponseProcessors.TmePartInfoResponseProcessor.ExecuteAsync(IIntegrationApi api, ProcessingContext context) in C:\projects\binner-io\Binner\Library\Binner.Services\Integrations\ResponseProcessors\TmePartInfoResponseProcessor.cs:line 33 at Binner.Services.Integrations.PartInformationProvider.<>c__DisplayClass7_0.<b__5>d.MoveNext() in C:\projects\binner-io\Binner\Library\Binner.Services\Integrations\PartInformationProvider.cs:line 104 --- End of stack trace from previous location --- at Binner.Services.Integrations.PartInformationProvider.ProcessResponseAsync(Type provider, IIntegrationApi api, ProcessingContext context) in C:\projects\binner-io\Binner\Library\Binner.Services\Integrations\PartInformationProvider.cs:line 117 at Binner.Services.Integrations.PartInformationProvider.FetchPartInformationAsync(String partNumber, String partType, String mountingType, String supplierPartNumbers, Int32 userId, ICollection1 partTypes, Part inventoryPart) in C:\projects\binner-io\Binner\Library\Binner.Services\Integrations\PartInformationProvider.cs:line 59 at Binner.Services.PartService.GetPartInformationAsync(String partNumber, String partType, String mountingType, String supplierPartNumbers) in C:\projects\binner-io\Binner\Library\Binner.Services\PartService.cs:line 854 at Binner.Services.PartService.GetPartInformationAsync(String partNumber, String partType, String mountingType, String supplierPartNumbers) in C:\projects\binner-io\Binner\Library\Binner.Services\PartService.cs:line 908 at Binner.Web.Controllers.PartController.GetPartInfoAsync(String partNumber, String partTypeId, String mountingTypeId, String supplierPartNumbers) in C:\projects\binner-io\Binner\Binner.Web\Controllers\PartController.cs:line 477

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!)

No, because I do not know how

@sq9wis sq9wis added the bug Something isn't working label Oct 26, 2024
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

1 participant