OTTR Troubleshooting
Common
Errors
Use this checklist when an OTTR course, website, or pull request preview does not render as expected.
GH_PAT
secret is current.exit code 128, update the token using the Update Token/Secret cheatsheet.config_automation.yml with the template version in OTTR_Template.ottrpal::include_slide() code chunk.
fig.alt argument
has no line breaks.fig.alt value.# Good: double quotes outside, single quotes inside
fig.alt = "This slide highlights 'one phrase' in the image."
# Good: single quotes outside, double quotes inside
fig.alt = 'This slide highlights "one phrase" in the image.'
When the rendering check fails:
file is not in PNG format
This often means ottrpal::include_slide() could not
retrieve a public image from Google Slides.
Process completed with exit code 1
This can be expected when spell check, URL check, or quiz format check finds problems.
CONFLICT (modify/delete)
This can happen when the preview branch has stale rendered changes.
preview-<pull request number>.Parser error: while parsing a flow
sequence
This usually means _bookdown.yml has a missing comma,
quote, or bracket.
_bookdown.yml.] is
present.rmd_files: ["index.Rmd",
"01-intro.Rmd",
"02-chapter_of_course.Rmd",
"new_file.Rmd",
"About.Rmd",
"References.Rmd"]
404
error
_output.yml.bookdown::word_document2:
toc: true
the condition has length > 1
This can happen when GA_Script.Rhtml includes extra HTML
document wrappers.
GA_Script.Rhtml.<html>,
<head>, <title>, and
<body> tags if they are present.</body>
and </html> tags if they are present.