Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Importing releases from api.discogs.com/releases often results in a timeout of the http_request. The module's import function still reports these releases as successful and will generate empty nodes without titles.
Comment | File | Size | Author |
---|---|---|---|
#3 | Issue-2233207-by-Karlheinz-timed-out-import-of-relea.patch | 2.54 KB | Karlheinz |
Comments
Comment #1
Karlheinz CreditAttribution: Karlheinz commentedComment #3
Karlheinz CreditAttribution: Karlheinz commentedI fixed this. It is committed to 7.x-1.x-dev, and I'm attaching a patch.
The details: Since the contract with the Provider says that the 'title' and 'release_artist' fields are required, it's the job of the Mediator to make sure that they are present before it even invokes the Entity Adapter. I foolishly didn't include code to check this in the Mediator before; now it does. The check happens during batch processing, so if one release fails, the importation process can keep going.