agroportal / project-management

Repository used to consolidate documentation about the AgroPortal project and track content related issues.
http://agroportal.lirmm.fr
7 stars 0 forks source link

404 Errors in Portal Post v2.8.0 Release #553

Closed Bilelkihal closed 3 weeks ago

Bilelkihal commented 1 month ago

Description

After releasing version 2.8.0, we are experiencing multiple 404 errors throughout the portal.

Potential Cause

The issue seems to be related to the following call in the UI: LinkedData::Client::Models::Ontology.find_by_acronym(ontology).first This call is returning an array instead of a hash.

syphax-bouazzouni commented 1 month ago

what is the content if this array?

Bilelkihal commented 1 month ago

Now I tried many times but I can't reproduce the error, but the last time I used the master of ontologies_api_ruby_client instead of development in my local environnement. I got that error and the content of the array was another array and then the hash of the ont, the expected structure is one array, but we I got a double one

syphax-bouazzouni commented 1 month ago

This issue was resolved in https://github.com/ontoportal-lirmm/bioportal_web_ui/pull/632 (specifically this commit https://github.com/ontoportal-lirmm/ontologies_api_ruby_client/commit/f91c32d532e6109b7eaccd5fd2ef51fef2192d71) and deployed in production. If you saw this error in your machine, it is surely because you have not done a git pull to get the latest version.

But even in production, @jonquet saw this in production yesterday https://github.com/agroportal/project-management/issues/551#issuecomment-2135663340, which is strange. There may be another hidden case where this occurs.

syphax-bouazzouni commented 4 weeks ago

Do you know if this still happens or do we close? @jonquet @Bilelkihal

jonquet commented 3 weeks ago

I have not experienced it anymore except with LEXEAU but we are not sure of reasons with multiples edit/loading of the resource by the devolper

Bilelkihal commented 3 weeks ago

@syphax-bouazzouni My side, this issue has not recurred

syphax-bouazzouni commented 3 weeks ago

I have not experienced it anymore except with LEXEAU but we are not sure of reasons with multiples edit/loading of the resource by the devolper

LEXEAU is fixed by this https://github.com/ontoportal-lirmm/bioportal_web_ui/pull/645