replaysMike / Binner

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

[Bug]: Error when importing Web Order from Mouser #264

Open nmoraitis opened 4 months ago

nmoraitis commented 4 months ago

Binner version

Version: 2.6.31

Operating System

https://binner.io

Describe the bug and the steps to reproduce it

I am receiving an error when trying to add a mouser web order.

The error message reads:

API Error System.FormatException Failed to import order! An exception occurred of type System.FormatException The input string '€ 289,08' was not in a correct format. Api Endpoint: https://binner.io/api/part/import

at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, ReadOnlySpan`1 value, TypeCode type) at Binner.Services.PartService.GetExternalMouserOrderAsync(OrderImportRequest request) in C:\projects\binner-io\Binner\Library\Binner.Services\PartService.cs:line 527 at Binner.Services.PartService.GetExternalOrderAsync(OrderImportRequest request) in C:\projects\binner-io\Binner\Library\Binner.Services\PartService.cs:line 241 at Binner.Web.Controllers.PartController.OrderImportAsync(OrderImportRequest request) in C:\projects\binner-io\Binner\Binner.Web\Controllers\PartController.cs:line 498

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