Skip to content

← All questions

Pool leased an account whose username is the literal ${TEST_MEMBER_EMAIL} and auth rejected it

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Local runs only. CI has been green throughout, which is why this took a day.

projects/mybotbox/data/staging/users.csv:

text
id,username,password,role
1,${TEST_MEMBER_EMAIL},${TEST_MEMBER_PASSWORD},member
bash
sdods run -p mybotbox -e staging -l ui -t @smoke

The failure is not from SDODS. It is from the auth provider, in the middle of the login step:

text
INVALID_EMAIL: the email address "${TEST_MEMBER_EMAIL}" is badly formatted.

So the pool leased an account whose username is the placeholder, as a string, and handed it to the login.

Both variables are in projects/mybotbox/.env.staging. That file is definitely being read — env.vars in the environment yaml references the same two variables and sdods config show -p mybotbox -e staging resolves them fine, values and all. So the dotenv layer exists and works, and then somewhere between there and the CSV it stops applying. Where?

And why is CI green?

4 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related