Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务接口失败了 #11

Open
tanliang2 opened this issue Sep 17, 2022 · 3 comments
Open

服务接口失败了 #11

tanliang2 opened this issue Sep 17, 2022 · 3 comments

Comments

@tanliang2
Copy link

No description provided.

@bamkikovic
Copy link

main.py", line 23, in
workers = int(os.environ.get('WORKERS'))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

@bamkikovic
Copy link

ANY SOLUTION PLEASE FOR THIS ERROR

@Ikromov247
Copy link

main.py", line 23, in workers = int(os.environ.get('WORKERS')) TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

you need to set a value for WORKERS in a .env file, and load this env file (it's already in main.py)

from dotenv import load_dotenv
load_dotenv()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants