-
Notifications
You must be signed in to change notification settings - Fork 237
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
finance week 9 , false error ( expected status code 200, but got 302 ) #202
Comments
I concur. I have the same problem and I honestly don't even know where to look, because the Network tab gives me the same responses on log in as the official solution at https://finance.cs50.net/ Furthermore, if I spam the
Needless to say the app works well if you test it manually. |
The test results are also very inconsistent. Without changing the code, I sometimes get the respective test to pass by spam-running the test suite. The logs:
The only difference between the code there is that I tried implementing a '/signin' route that would simply redirect to '/login' or '/register' I claim the test "logging in as registered user succceeds" is inconsistent. |
Ok, i found the solution to this: If in app.py, you call any custom function you created, then YOU SHOULD NOT externalize them in another file! They must be written in app.py, so at the end of the file. I don't know how tests are processed, but the test doesn't expect that we organize the code in order to reduce redundancy, externalize logical code outside of the file etc. Source: |
Can confirm, I also have this problem
Above is a segment of my own code. It works perfectly from all points of view except for check50. I am losing my mind. |
hi , i get this error while my code requires redirect so it do need 302 status code
please help me if there is anything i should do
i can fix this error by changing my decorated_function like this (in helpers.py), but it breaks other tests and other parts of program
The text was updated successfully, but these errors were encountered: