elad-bar / ha-hpprinter

HP Printer Integration
89 stars 25 forks source link

Failed to format translation for key 'component.hpprinter.config.error.error_400' in language 'en' #175

Open amaximus opened 5 days ago

amaximus commented 5 days ago

HP Printer integration version: v2.0.4

Trying to configure the integration to connect to a HP Photosmart B110a specifying its IP address I get the following error and the integration doesn't get set up:

2024-06-25 13:45:52.152 ERROR (MainThread) [frontend.js.latest.202406101] Failed to format translation for key 'component.hpprinter.config.error.error_400' in language 'en'. Error: The intl string context variable "IP" was not provided to the string "Invalid server details, please try manually access to `http://{IP}/DevMgmt/ProductStatusDyn.xml` (Replace placeholder with IP or Hostname), in case it's accessible, please report the issue with logs"

DevMgmt/ProductStatusDyn.xml gives:

<!--  THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN.  -->
<psdyn:ProductStatusDyn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:ad="http://www.hp.com/schemas/imaging/con/ledm/alertdetails/2007/10/31" xmlns:pscat="http://www.hp.com/schemas/imaging/con/ledm/productstatuscategories/2007/10/31" xmlns:locid="http://www.hp.com/schemas/imaging/con/ledm/localizationids/2007/10/31" xmlns:psdyn="http://www.hp.com/schemas/imaging/con/ledm/productstatusdyn/2007/10/31" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ ../schemas/dd/DataDictionaryMasterLEDM.xsd http://www.hp.com/schemas/imaging/con/ledm/alertdetails/2007/10/31 ../schemas/AlertDetails.xsd http://www.hp.com/schemas/imaging/con/ledm/productstatuscategories/2007/10/31 ../schemas/ProductStatusCategories.xsd http://www.hp.com/schemas/imaging/con/ledm/localizationids/2007/10/31 ../schemas/LocalizationIds.xsd http://www.hp.com/schemas/imaging/con/ledm/productstatusdyn/2007/10/31 ../schemas/ProductStatusDyn.xsd">
<dd:Version>
<dd:Revision>SVN.3058</dd:Revision>
</dd:Version>
<psdyn:Status>
<pscat:StatusCategory>ready</pscat:StatusCategory>
</psdyn:Status>
<psdyn:AlertTable>
<dd:ModificationNumber>0</dd:ModificationNumber>
</psdyn:AlertTable>
</psdyn:ProductStatusDyn>
elad-bar commented 5 days ago

Thanks for the details will try to get to it during the upcoming weekend