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

400 bad request with example #2

Open
stevecrawshaw opened this issue Mar 23, 2022 · 0 comments
Open

400 bad request with example #2

stevecrawshaw opened this issue Mar 23, 2022 · 0 comments

Comments

@stevecrawshaw
Copy link

I have set up the page odsrmd-example and saved.
The rmd, html and style.css files are all created in the temp folder
when i run the example code i get..

Languages available on the platform: EN.
Chosen languages: ALL.

Invalid management API request
InvalidPageContentException
Invalid page content: CSS tab, en version: The CSS code can only contain safe CSS values, and doesn't support JavaScript.
Error in resp_check_status():
! HTTP 400 Bad Request.
Run rlang::last_error() to see where the error occurred.

rlang::last_error()
<error/httr2_http_400>
Error in resp_check_status():
! HTTP 400 Bad Request.


Backtrace:

  1. odsrmd::update_ods_page(...)
  2. httr2::req_perform(.)
  3. httr2::resp_check_status(resp, error_body(req, resp))
    Run rlang::last_trace() to see the full context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant