-
Notifications
You must be signed in to change notification settings - Fork 29
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
problem with line 20 in server.py while running the server using python server.py #71
Comments
can you share your folder structure ? |
i think it's case of mac. and we need to add |
I' ll try to do it @shivank98. it happens sometimes once it runs but somehow whenever it gets 404 error the next time it gives this error. |
yeah try deleting that Ds.. folder for check.
…On Mon, Jan 28, 2019, 12:24 AM Gaurav sharma ***@***.*** wrote:
I' ll try to do it @shivank98 <https://github.com/Shivank98>. it happens
sometimes once it runs but somehow whenever it gets 404 error the next time
it gives this error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVkQJuNA241oJ8WUjGYae2_p5VXdDSQDks5vHfXjgaJpZM4aU2jz>
.
|
actually the problem comes from line 18 which assumes that there will be no extra folders in the listing. We can do a simple check like for i in os.listdir(question_dir):
if not i.isdigit():
continue
# continue with the rest of the stuff |
the error is coming because it's trying to find a file there in the path with the DS folder. |
Perhaps someone can put up a PR which fixes this? |
I am still getting the 404 Not found error. Could anyone whose |
share the screenshot @arnabsinha99 please |
|
@arnabsinha99 your server is running. Please enter this URL after running the server.py: http://localhost:8080/question/1 |
alright. that worked thanks!. some more issues I faced are :-
|
some problem on line 20 server.py while running the server using python server.py(it happens sometimes)
The text was updated successfully, but these errors were encountered: