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

unexpected error invalid version: <!DOCTYPE html> #859

Open
rdt712 opened this issue Nov 17, 2023 · 3 comments
Open

unexpected error invalid version: <!DOCTYPE html> #859

rdt712 opened this issue Nov 17, 2023 · 3 comments

Comments

@rdt712
Copy link

rdt712 commented Nov 17, 2023

I am on a corporate proxy that requires system certificates. I managed to resolve the invalid peer certificate: UnknownIssuer error by setting the env var DENO_TLS_CA_STORE=system for Deno. However, whenever I try to run a package, I get the following error

unexpected error invalid version: <!DOCTYPE html>
│ Error: invalid version: <!DOCTYPE html>
│     at https://deno.land/x/libpkgx@v0.15.0/src/utils/semver.ts:44:17
│     at Array.flatMap (<anonymous>)
│     at new SemVer (https://deno.land/x/libpkgx@v0.15.0/src/utils/semver.ts:25:31)
│     at https://deno.land/x/libpkgx@v0.15.0/src/hooks/useInventory.ts:24:63
│     at Array.compact (https://deno.land/x/libpkgx@v0.15.0/src/utils/misc.ts:40:24)
│     at Object.get (https://deno.land/x/libpkgx@v0.15.0/src/hooks/useInventory.ts:24:50)
│     at eventLoopTick (ext:core/01_core.js:183:11)
│     at async Object.select (https://deno.land/x/libpkgx@v0.15.0/src/hooks/useInventory.ts:7:20)
│     at async Promise.all (index 5)
│     at async resolve (https://deno.land/x/libpkgx@v0.15.0/src/plumbing/resolve.ts:55:3)

I have been running sample commands found in the documentation such as:
pkgx postgres^12 --version
pkgx node@latest --version
pkgx openai --version

and they all produce the same error.

Any help would be appreciated! At the moment, I am unable to use pkgx at work, which is a real shame because it's such a cool concept.

@jhheider
Copy link
Contributor

Something is intervening in the call to https://dist.pkgx.dev/postgresql.org/darwin/aarch64/versions.txt (or similar, depending on your platform/arch). If curl https://dist.pkgx.dev/postgresql.org/darwin/aarch64/versions.txt works correctly, then it's Deno's fetch client that's suffering. I believe we thought at one point that .netrc support might help, but for an externally-managed software policy, even that might not be sufficient.

@mxcl
Copy link
Member

mxcl commented Nov 18, 2023

Is there some file we could parse that would make this just work for you @rdt712 ?

@michaelessiet
Copy link
Contributor

Hey @rdt712, are you still experiencing this issue?

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

No branches or pull requests

4 participants