Skip to content

App crash when trying to accces to /user/"username"/expressions when not logged #30

Description

@NanezX

This happened to me when the session end meanwhile I was checking expressions dashbord.

The app crash with an 500 Internal Error with this on the server side:

Invalid "number" argument: NaN
RangeError: Invalid "number" argument: NaN
    at parseNumber (/home/nanez/terra-virtua/rain-studio/node_modules/relative-time-format/commonjs/RelativeTimeFormat.js:455:13)
    at parseFormatArgs (/home/nanez/terra-virtua/rain-studio/node_modules/relative-time-format/commonjs/RelativeTimeFormat.js:485:11)
    at RelativeTimeFormat.format (/home/nanez/terra-virtua/rain-studio/node_modules/relative-time-format/commonjs/RelativeTimeFormat.js:160:30)
    at TimeAgo.formatDateForStep (/home/nanez/terra-virtua/rain-studio/node_modules/javascript-time-ago/commonjs/TimeAgo.js:337:48)
    at TimeAgo.format (/home/nanez/terra-virtua/rain-studio/node_modules/javascript-time-ago/commonjs/TimeAgo.js:233:32)
    at TimeAgo.svelte:14:27
    at Object.$$render (/node_modules/svelte/internal/index.mjs:1876:22)
    at eval (/src/lib/expressions/ExpressionRow.svelte:25:88)
    at Object.$$render (/node_modules/svelte/internal/index.mjs:1876:22)
    at eval (/src/lib/expressions/DeployedExpressionSummaryRow.svelte:45:108)

To reproduce this error, as I said before, just logout and tried to access to any user expressions dashbourd like /user/nanezx/expressions and the app will crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions