CredentialEngine / ai-course-crawler

Apache License 2.0
1 stars 0 forks source link

Error saving catalogue - Unique constraint failed: Catalogues.url #17

Closed jeannekitchens closed 3 months ago

jeannekitchens commented 3 months ago

The Career and Technical Education - Arkansas Department of Corrections courses had been crawled on July 27th. Rather then re-crawling from the URL already saved in the Catalogues list, I re-submitted the following URL and get an error message, "Error saving catalogue - Unique constraint failed: Catalogues.url." Error saving catalogue - Unique constraint failed: Catalogues.url.

Is this by design? If the URL is already in the catalog list is the instruction to use the existing URL? If so the error message needs to be more meaninful, "This course catalog URL is already included with the Catalogues list, if you want to re-crawl the catalog, select the URL from the catalog list https://master.ai-course-crawler.development.c66.me/catalogues."

image

rsaksida commented 3 months ago

I've added explicit error handling for this in the UI.

jeannekitchens commented 3 months ago

Thank you @rsaksida . I like the redirect you included so the person can go directly to the already crawled catalog. This looks good.