Skip to content

"Add new assets" window returns error after a little while #24759

@sergejpapper

Description

@sergejpapper

Node Version

20.19.1

NPM/Yarn/PNPM Version

Yarn 1.22.22

Strapi Version

5.30.0

Operating System

MacOS

Database

MySQL

Javascript or Typescript

Typescript

Reproduction URL

No response

Bug Description

I don't know if it is a bug or normal behavior. Or maybe I just need to increase session time in Strapi config.

Let's say, I open a collection in Content Manager with lots of fields. It took a time for me to fill all fields (page was not refreshed during this time). Then I try to upload an image throw media field. And it returns an error (network tab show 401 status - unauthorized). Please, check image for more details.

Image

However when I refresh a page, I can continue my work from the place I left. Media in this case works again.

Steps to Reproduce

  1. Create collection with media field and open it in Content Manager
  2. Leave browser to be opened in background (without refresh) for a while (up to 30-60 min.)
  3. Try to upload media

Expected Behavior

Like I said, I don't know if it is a bug, but in some case in can confuse administrators. Maybe there any solutions?

For example, information modal with info, that your session is going to expire.

Logs

Code Snippets

No response

Media

No response

Additional information

No response

Confirmation Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions