scrapinghub / portia

Visual scraping for Scrapy
BSD 3-Clause "New" or "Revised" License
9.3k stars 1.4k forks source link

Better handle errors thrown in API #621

Closed ruairif closed 8 years ago

ruairif commented 8 years ago

Use a custom exception handler to format jsonapi errors correctly Format json errors in a similar fashion to jsonapi errors Add unique ids to errors to avoid them being displayed more than once in the UI Show user the error message returned by the api if the status code is < 500