Skip to content

The createFleetLabel function in our backend is failing when attempting to create a Fleet label. #1594

@Moballigh5225

Description

@Moballigh5225

Issue Summary

The createFleetLabel function in our backend is failing when attempting to create a Fleet label. The function calls getFleetInstance() to obtain an Axios instance and then posts a label creation request. However, the request fails with a TypeError: Invalid URL error.

The root cause appears to be that getFleetInstance() returns undefined, likely due to a missing or invalid FLEET_API_URL environment variable. As a result, the Axios instance is not properly configured, causing the POST request to fa

Steps to Reproduce

Start the development server with Next.js.
click on download the agent.

Error Type

Console Error

Error Message

Failed to create fleet label

Image

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