Project

General

Profile

Actions

Bug #17656

closed

API doc build silently fails

Added by Alexis Mousset over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

rm -rf build target
# Prepare all sources in build/ dir
mkdir -p build target/webapp
cp -r ../webapp/sources/api-doc build/webapp
mkdir -p build/webapp/assets
cp -r assets/. build/webapp/assets
./build.py webapp build target
Building version 12 from build/webapp/openapi.src.yml
/usr/local/lib/node_modules/@redocly/openapi-cli/dist/yaml/index.js:108
    if (source[frameStart - 1] === '\n') actualLinesBefore += 1;
              ^

TypeError: Cannot read property '3867' of undefined
    at getCodeFrameForLocation (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/yaml/index.js:108:15)
    at createYAMLParseError (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/error/index.js:50:48)
    at resolve (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/resolver.js:89:57)
    at resolveNode (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/resolver.js:210:22)
    at onNodeEnter (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/traverse.js:90:29)
    at traverseNode (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/traverse.js:110:23)
    at traverseChildren (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/traverse.js:47:27)
    at traverseNode (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/traverse.js:138:30)
    at traverseChildren (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/traverse.js:70:24)
    at traverseNode (/usr/local/lib/node_modules/@redocly/openapi-cli/dist/traverse.js:138:30)
Error: Error opening file "/home/amousset/projects/rudder/api-doc/target/webapp/12/openapi.yml" 
ENOENT: no such file or directory, open '/home/amousset/projects/rudder/api-doc/target/webapp/12/openapi.yml'
    at ReadFileContext.callback (/usr/local/lib/node_modules/redoc-cli/node_modules/json-schema-ref-parser/lib/resolvers/file.js:51:20)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)

Error: ENOENT: no such file or directory, open '/home/amousset/projects/rudder/api-doc/target/webapp/12/openapi.yml'

Related issues 1 (1 open0 closed)

Related to Rudder - Bug #17665: Fix archive API docNewActions
Actions

Also available in: Atom PDF