Skip to content

Equals Symbol Causes "Failed to parse dotenv file due to an invalid name". #319

Closed
@bljdavidson

Description

@bljdavidson

How do you escape the = symbol? It's causing the "Failed to parse dotenv file due to an invalid name" error because of it. It's part of a multiline value.

SERVICE_ACCOUNT_JSON = '{
    "type": "service_account",
    "project_id": "project id",
    "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE ..... DgQw==\n-----END PRIVATE KEY-----\n",
    "client_email": "[email protected]"
    "client_id": "1234567890123456789",
    .....
    .....
}',

It is failing at the 2 == symbols at the end of the "private_key" value. If I remove the 2 symbols, it works, but unfortunately, it won't authenticate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions