Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent 404 responses #547

Open
dchiquito opened this issue Jun 11, 2020 · 0 comments
Open

Intermittent 404 responses #547

dchiquito opened this issue Jun 11, 2020 · 0 comments
Labels
type: bug Something isn't working
Projects

Comments

@dchiquito
Copy link
Contributor

Sometimes the backend will respond a 404 for no apparent reason. Sentry has only caught it when fetching available sample files (https://sentry.io/organizations/kitware-data/issues/1327518191/), but I've personally seen it several times when fetching the loadings plot (/api/v1/csv/{uuid}/plot/loadings). In those cases, corresponding requests for the PCA plot succeeded, and everything worked after refreshing the page.

My hypothesis is that the problem is that the error is being thrown from the views.load_validated_csv_file annotation:

def load_validated_csv_file(func):

    @wraps(func)
    def wrapped(csv_id: str, *arg, **kwargs):
        csv_file = ValidatedMetaboliteTable.query \
            .filter_by(csv_file_id=csv_id) \
            .first_or_404()
        return func(csv_file, *arg, **kwargs)

    return wrapped

Somehow the database isn't finding a validated table that is there for requests made before and after the error occurs.

@dchiquito dchiquito added the type: bug Something isn't working label Jun 11, 2020
@jeffbaumes jeffbaumes added this to New issues in viime Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
viime
  
New issues
Development

No branches or pull requests

1 participant