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

Retry the convertToSquahsfs request given the HPE_INVALID_CONSTANT error #145

Merged
merged 5 commits into from
Feb 26, 2024

Conversation

Christian-Holbrook
Copy link
Contributor

We occasionally see the convertToSquashfs request fail. It seems determined by the size of the zip and the length of the file name. The Roku responds with half of the response body and roku-deploy cannot handle the bad data.

The squashfs conversion looks like it successfully created, the error is in the response.

The work around is to make a second request to squashfs when we see the 'HPE_INVALID_CONSTANT' error. If that response includes 'fileType': 'squashfs' then we return the result saying it succeeded.

src/RokuDeploy.ts Outdated Show resolved Hide resolved
@TwitchBronBron TwitchBronBron merged commit c73fbaf into master Feb 26, 2024
6 checks passed
@TwitchBronBron TwitchBronBron deleted the squashfs-stability branch February 26, 2024 19:35
TwitchBronBron added a commit that referenced this pull request Apr 30, 2024
* Update wrong host password error message (#134)

* Update wrong host password error message

* Fix unit test to look for the updated message

* Get 100% code coverage

* Update changelog for v3.11.2

* 3.11.2

* Retry the convertToSquahsfs request given the HPE_INVALID_CONSTANT error (#145)

* Retry the convertToSquahsfs request given the HPE_INVALID_CONSTANT error

* Add a clarifying comment and a new test case

* Add two more test cases to get to 100% code coverage

* Another test in pursuit of 100%

* Remove optional chaining on catch. The error is always going to be set

* Update changelog for v3.11.3

* 3.11.3

* Support overriding various package upload form data (#136)

* Support overriding various package upload form data

* adds support for squashfs deployments

---------

Co-authored-by: George Cook <[email protected]>

* Update changelog for v3.12.0

* 3.12.0

* Merge branch 'master' into v4

# Conflicts:
#	CHANGELOG.md
#	package-lock.json
#	package.json
#	src/RokuDeploy.spec.ts
#	src/RokuDeploy.ts
#	src/RokuDeployOptions.ts
- deleteDevChannel call was added which changed order of sideload post requests
- output file in makezip was changed to writefile

* readme info for retain staging dir deleted

* readded example

* fix package lock

* Fix Ci

---------

Co-authored-by: Christian-Holbrook <[email protected]>
Co-authored-by: Bronley Plumb <[email protected]>
Co-authored-by: George Cook <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants