Skip to content

Bad Sphinx configuration path causes uncaught error while updating the build through API #10538

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

Closed
agjohnson opened this issue Jul 12, 2023 · 0 comments · Fixed by #10616
Closed
Assignees
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@agjohnson
Copy link
Contributor

agjohnson commented Jul 12, 2023

This came from a user support question. The user noted a build that did not finish and seemed to hang. Digging into the issue, the logs looked odd. I noticed the error:

"Object of type PosixPath is not JSON serializable"

This was raised as the build instance was being updated at our API, not inside the build process. Because the API was not updated, the build was never marked as finished, and so was left to timeout.

We weren't having luck looking into this too deeply, but I just noticed today that the Sphinx configuration value in the build's RTD config was quite odd:

{
  "builder": "sphinx",
  "configuration": "../../../../../../../../conf.py",
  "fail_on_warning": false
}

I was able to use this value to easily reproduce the error:

The error didn't seem to come up in Sentry

Front logo Front conversations

@agjohnson agjohnson added Bug A bug Accepted Accepted issue on our roadmap labels Jul 12, 2023
@github-project-automation github-project-automation bot moved this to Planned in 📍Roadmap Jul 12, 2023
@humitos humitos moved this from Planned to Needs review in 📍Roadmap Aug 9, 2023
@github-project-automation github-project-automation bot moved this from Needs review to Done in 📍Roadmap Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants