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

Make server errors return JSON if requested via AJAX #233

Merged
merged 5 commits into from
Jul 1, 2013

Conversation

singingwolfboy
Copy link
Contributor

Our default error handler is popping up rendered HTML error pages because our error handlers are returning HTML. It would be much saner to return JSON when requested via AJAX, even on errors. This pull request makes that happen.

@chrisndodge
Copy link
Contributor

+1 looks like a good approach/pattern. Thanks for taking the initiative!

Build is failing, but I don't see any failed tests. Is it due to pep8/pylint limits?

@chrisndodge
Copy link
Contributor

Hey, just going through the list of open PR's. Think we can kick off another build to see if it passes and then merge?

@cahrens
Copy link

cahrens commented Jun 30, 2013

What is the status of this PR? Is it the fix for STUD-260?

@singingwolfboy
Copy link
Contributor Author

@cahrens Yes, this PR should fix STUD-260. I just need to figure out why it's causing the Jenkins build to fail...

singingwolfboy added a commit that referenced this pull request Jul 1, 2013
Make server errors return JSON if requested via AJAX
@singingwolfboy singingwolfboy merged commit 60e9a77 into master Jul 1, 2013
@singingwolfboy singingwolfboy deleted the db/ajax-server-error branch July 1, 2013 19:48
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
antoviaque referenced this pull request in open-craft/edx-platform Sep 24, 2014
Fix failing comment client tests.
diegomillan referenced this pull request in eduNEXT/edx-platform Sep 14, 2016
prabhanshu pushed a commit to prabhanshu/edx-platform that referenced this pull request Oct 13, 2018
* Client credentials + grades api (openedx#228)

* Client credentials and grades api

* Updating the permissions on the fly for request object (openedx#233)

* Updating the permissions on the fly for request object

* Update views.py
CrewS pushed a commit to CrewS/edx-platform-1 that referenced this pull request Jan 14, 2019
edx-secure pushed a commit that referenced this pull request Aug 11, 2021
fix: update lxml parser for celery tasks to be more secure
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
* Commits:
  chore(deps): update dependency codecov to v3.8.1
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

Successfully merging this pull request may close these issues.

3 participants