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

Document sample script not working #1995

Closed
msl9204 opened this issue May 11, 2022 · 2 comments · Fixed by #1996
Closed

Document sample script not working #1995

msl9204 opened this issue May 11, 2022 · 2 comments · Fixed by #1996

Comments

@msl9204
Copy link

msl9204 commented May 11, 2022

I tried this document https://redocly.com/docs/redoc/deployment/cli/

and tried this example script

npx redoc-cli build http://petstore.swagger.io/v2/swagger.json -t custom.hbs --templateOptions.metaDescription "Page meta description"

Describe the error

[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0
Prerendering docs
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:371:5)
at onParseError (node:internal/url:552:9)
at new URL (node:internal/url:628:5)
at new URL (node:internal/url:625:22)
at new vo (/Users/ms/.npm/_npx/088c5868f11c5564/node_modules/redoc-cli/node_modules/redoc/bundles/redoc.lib.js:41:74350)
at new Ro (/Users/ms/.npm/_npx/088c5868f11c5564/node_modules/redoc-cli/node_modules/redoc/bundles/redoc.lib.js:41:78172)
at new Tl (/Users/ms/.npm/_npx/088c5868f11c5564/node_modules/redoc-cli/node_modules/redoc/bundles/redoc.lib.js:1176:2881)
at Module. (/Users/ms/.npm/_npx/088c5868f11c5564/node_modules/redoc-cli/node_modules/redoc/bundles/redoc.lib.js:1176:2659)
at Generator.next ()
at i (/Users/ms/.npm/_npx/088c5868f11c5564/node_modules/redoc-cli/node_modules/redoc/bundles/redoc.lib.js:1176:2413)

Env

node : v16.13.2
npx : 8.1.2

@AlexVarchuk
Copy link
Collaborator

Hi! @msl9204, thank you for the bug reporting. We'll fix it soon.

@AlexVarchuk
Copy link
Collaborator

@msl9204 also, before we fix it you can try redoc-cli use prev version(0.13.11).

npx redoc-cli@0.13.11 buildhttp://petstore.swagger.io/v2/swagger.json -t custom.hbs --templateOptions.metaDescription "Page meta description"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants