Skip to content

Resetting the REPLICATE_API_TOKEN environment? #3

@jtabox

Description

@jtabox

Hey,

The following line in nodes/config.py messes up with the comfyui-replicate node (or any other node that expects a REPLICATE_API_TOKEN variable in order to work):

os.environ["REPLICATE_API_TOKEN"] = ""

It resets the variable without checking if it already exists, thus making it worthless for the whole of Comfy UI and every custom node. Same goes for FAL_KEY, which apparently also is reset in the line above this one.

Admittedly I haven't checked your whole code, so I don't know why those two specific environment variables need to be reset, but if it must be so, maybe you can add a notification somewhere? Spent way too much time trying to make the comfyui-replicate node (and another personal node of mine using the variable) to work, and it turns out the issue was in this, seemingly unrelated node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions