Thread
#prefect-community
    n

    Nadav

    1 year ago
    Hi, when running on ECSRun and setting env variables they are auto casting strings to ints which causes boto3 exception, is there a way to avoid auto casting?
    Kevin Kho

    Kevin Kho

    1 year ago
    Hey @Nadav, is this when setting env vars on the agent? or through the RunConfig?
    n

    Nadav

    1 year ago
    @Kevin Kho i set the variables on the cloud ui when creating a run
    Kevin Kho

    Kevin Kho

    1 year ago
    Can you reproduce this with a minimal flow example? Does it also happen with Local Agent for you?
    n

    Nadav

    1 year ago
    it won’t happen in local agent since this as far as i know an AWS exception when submit env variables to ECS, the type of of the variables values should be strings
    Kevin Kho

    Kevin Kho

    1 year ago
    Ohh gotcha! I’ll try to replicate this tonight.
    n

    Nadav

    1 year ago
    thanks
    Kevin Kho

    Kevin Kho

    1 year ago
    I replicated this. So when I go to the UI and do key=test, value=1, this becomes an integer but if I do key=test and value=“1” and this worked. When I used JSON to input though, automatic conversation was applied. Will talk to the team about this.
    n

    Nadav

    1 year ago
    thanks, i will try the solution without json
    Kevin Kho

    Kevin Kho

    1 year ago
    I opened an issue for this here: https://github.com/PrefectHQ/ui/issues/979
    n

    Nadav

    1 year ago
    Thank you