Skip to content

get_docs() throws an error #7

@richierocks

Description

@richierocks

What went wrong?

I tried get_docs("main_app") (as recommended in the README). This failed with the following output.

Fetching /dbconnect/main_app/docs from EC2 parameter store

An error occurred (ParameterNotFound) when calling the GetParameter operation: Parameter /dbconnect/main_app/docs not found.
Error: parse error: premature EOF
                                       
                     (right here) ------^
In addition: Warning message:
running command ''aws' ssm get-parameter --with-decryption --name /dbconnect/main_app/docs' had status 255 

get_docs("teach_app") and get_docs("mobile_app") threw similar errors.

What happened?

Inside get_parameter(), the system2() call failed to find the docs.

An error occurred (ParameterNotFound) when calling the GetParameter operation: Parameter /dbconnect/main_app/docs not found.

The code for processing this value failed, since that message isn't JSON.

fromJSON(paste(resp, collapse = "\n"))$Parameter$Value

That led to the "parse error: premature EOF" error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions