Project

General

Profile

Actions

Bug #17656

closed

API doc build silently fails

Added by Alexis Mousset almost 4 years ago. Updated almost 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 #1

Updated by Alexis Mousset almost 4 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #2

Updated by Alexis Mousset almost 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/3063
Actions #3

Updated by Alexis Mousset almost 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Alexis Mousset almost 4 years ago

  • Related to Bug #17665: Fix archive API doc added
Actions #5

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.0~rc4 which was released today.

Actions

Also available in: Atom PDF