Skip to content

[Bug]: Asset visible in Web UI but missing from /hardware API endpoint #18376

@MariusW93

Description

@MariusW93

Snipe-IT Version

v8.3.7

PHP Version

PHP 8.3.6

Composer Version

2.9.2

MySQL/MariaDB version

mariadb 11.8.3

How did you install Snipe-IT?

Docker

Is this a fresh install or an upgrade?

Fresh install

What happened?

When querying the API endpoint GET /api/v1/hardware?limit=20000&offset=0, some assets are missing from the response even though they are present in the web interface.
The ‘total’ field contains all of our assets (total: 1803).
Direct API access via GET /api/v1/hardware/{id} returns the asset correctly.
The asset is fully visible and searchable in the web user interface under ‘Assets’ → ‘List all’. The API request is executed with a super admin access token.

What browsers are you seeing the problem on?

No response

Can you reproduce this on the public demo?

N/A

Do you have full multiple company support enabled?

No

If you have full multiple company support enabled, do you have location scoping to company enabled?

I do not have full multiple company support enabled

Application log output

There are no log entries for this.

Browser console output

There are no log entries for this. I use Postman or curl.

Common Issues

  • I have searched this repo for existing issues related to my issue (including closed issues)
  • My APP_URL is set correctly in my .env file (including http or https and no trailing slash)
  • I have searched the official Snipe-IT documentation and have checked the Common Issues documentation (where applicable)
  • I have run database migrations (where applicable).
  • I have attached screenshots and/or videos of the issue (where applicable)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions