Hello there,
Your issue sounds similar to: Headers Error in .env Challenge - JavaScript - The freeCodeCamp Forum
We are still trying to find the source of the issue, because some Campers experience it, whilst others do not.
EDIT: As an update, code that passed 3 days ago is now failing, and this challenge has not been changed since, neither has the testing. So, I suspect it might be related to Repl.it