Skip to content

Commit

Permalink
fix: Fix maxContentLength size of -1 exceeded when trying to update…
Browse files Browse the repository at this point in the history
… Ubisys devices (#6305)

* Update ubisys.ts

Avoid maxContentLength failure when updating Ubisys device (Koenkk/zigbee2mqtt#19283)

* Update ubisys.ts

- fix linter issues
  • Loading branch information
m0wlheld authored Oct 18, 2023
1 parent bda4f6d commit e687d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ota/ubisys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function getImageMeta(current: Ota.ImageInfo, logger: Logger, devic
const imageType = current.imageType;
const hardwareVersion = device.hardwareVersion;

const firmwarePage = await axios.get(firmwareHtmlPageUrl);
const firmwarePage = await axios.get(firmwareHtmlPageUrl, {maxContentLength: -1});
logger.debug(
`OTA ubisys: got firmware page, status: ${firmwarePage.status}, data.length: ${firmwarePage.data.length}`);
assert(firmwarePage.status === 200, `HTTP Error getting ubisys firmware page`);
Expand Down

0 comments on commit e687d2b

Please sign in to comment.