-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
endpoints_project3_solution.py #18
Comments
I'd like to know the reason for this as well. I would like to run the endpoints_tester3.py file to pass all test. |
This is an issue with the URL in line 15 of endpoints_tester3.py and being redirected (301 return code) from Flask. From http://flask.pocoo.org/docs/0.10/quickstart/#url-building Unique URLs / Redirection Behavior Take these two rules: @app.route('/projects/') @app.route('/about') In the second case, however, the URL is defined without a trailing slash, rather like the pathname of a file on UNIX-like systems. Accessing the URL with a trailing slash will produce a 404 “Not Found” error. This behavior allows relative URLs to continue working even if the trailing slash is ommited, consistent with how Apache and other servers work. Also, the URLs will stay unique, which helps search engines avoid indexing the same page twice. |
Test 1 FAILED: Could not make POST Request to web server
("the JSON object must be str, not 'bytes'",)
I am getting this error.
On sending the POST request from postman, it shows the desired result.
The text was updated successfully, but these errors were encountered: