culturecreates / footlight-aggregator

A tool to inject entities from Artsdata to footlight
0 stars 0 forks source link

Aggregator crash loading Event #11

Closed saumier closed 1 year ago

saumier commented 1 year ago

@SuhailAliyar Please try to reproduce and debug this issue. All events that have the organizer K16-201 are getting a 500 error.

I can reproduce with the following event 644139ba7a2993006450ac6d

Calling artsdata looks good to me so I can't understand why the 500 error from CMS. My guess is because there are 2 logo images. If that is the case please select the first in the aggregator.

http://api.artsdata.ca/query?adid=K16-201&format=json&frame=ranked_org_person_footlight&sparql=ranked_org_person_footlight

Fetching taxonomies
Fetching events from Artsdata. Source: http://kg.artsdata.ca/culture-creates/footlight/signelaval-com
Fetching current user info
        Adding postal-addresses...
        Added Entity (644740449df755006486c0e6 : undefined) to Footlight!
        Adding places...
        Fetching entity places...
        Updating places...
        Updated Entity (6441398c7a2993006450a07d : http://kg.artsdata.ca/resource/K11-213) in Footlight!
        Adding organizations...
        Some thing went wrong.{"uri":"http://kg.artsdata.ca/resource/K16-201","type":"Organization","description":{"fr":"<p>[co]motion est un diffuseur majeur au Qu&eacute;bec et un gestionnaire culturel qui a pour mission de favoriser la diffusion des arts, principalement les arts de la sc&egrave;ne, sur le territoire lavallois en pr&eacute;sentant une vari&eacute;t&eacute; de spectacles et d'&eacute;v&eacute;nements.</p>"},"disambiguatingDescription":{"en":"Organization"},"logo":{"uri":"http://kg.artsdata.ca/resource/K16-201#imageObject","url":[{"uri":"https://rideaublob.blob.core.windows.net/uploads%2Forgimage/5531858008621264-carre_co-motion.jpg"},{"uri":"https://cdn.caligram.com/uploads/organization/QL/5ba5100491195.png"}]},"name":{"fr":"[co]motion, agitateur de culture"},"sameAs":[{"uri":"http://kg.artsdata.ca/resource/K16-201"},{"uri":"http://scenepro.ca#Organization239"}],"url":{"uri":"https://www.co-motion.ca"}} 

Image

saumier commented 1 year ago

@SuhailAliyar Please look into this as a priority Tuesday and run the Aggregator in Production so all events with the organizer co-motion get updated. This needs to be done before Caitlin manually edits the events, otherwise the aggregator will no longer be able to update the event. Caitlin is planning to edit all the events on Tuesday to fix the prices and event series. thx.

saumier commented 1 year ago

@SuhailAliyar If you can check for any other crashes for other events that get loaded for Signé Laval then please look into them. Tuesday is the last day we can run the aggregator on existing events. Thx.

SuhailAliyar commented 1 year ago

{ "uri": "http://kg.artsdata.ca/resource/K16-201", "type": "Organization", "description": { "fr": "<p>[co]motion est un diffuseur majeur au Qu&eacute;bec et un gestionnaire culturel qui a pour mission de favoriser la diffusion des arts, principalement les arts de la sc&egrave;ne, sur le territoire lavallois en pr&eacute;sentant une vari&eacute;t&eacute; de spectacles et d'&eacute;v&eacute;nements.</p>" }, "disambiguatingDescription": { "en": "Organization" }, **"logo": { "uri": "http://kg.artsdata.ca/resource/K16-201#imageObject", "url": [ { "uri": "https://rideaublob.blob.core.windows.net/uploads%2Forgimage/5531858008621264-carre_co-motion.jpg" }, { "uri": "https://cdn.caligram.com/uploads/organization/QL/5ba5100491195.png" } ] },** "name": { "fr": "[co]motion, agitateur de culture" }, "sameAs": [ { "uri": "http://kg.artsdata.ca/resource/K16-201" }, { "uri": "http://scenepro.ca#Organization239" } ], "url": { "uri": "https://www.co-motion.ca" } }

In the organization details above, I see a difference in the expected data for the logo. We expect an object like the one below but it's an array in the data.

"logo": { "uri": "http://kg.artsdata.ca/resource/K16-201#imageObject", "url": { "uri": "https://rideaublob.blob.core.windows.net/uploads%2Forgimage/5531858008621264-carre_co-motion.jpg" } },

I've handled this specific case in the aggregator for now.