Skip to content

Problem: Task Template page got stuck in loading state and not coming up. #3112

@Devashishkatiyar

Description

@Devashishkatiyar

Issue

I have deployed semaphore as a containazed environment. and after a week or so when i open the semaphore UI and goes to the task template page it hangs in loading state (shows nothing).
In the api call we have observed that some of the API calls are resulting into 401 unauthorized error.

the api call from semaphore task template page is below:

this.inventory = (await axios({
method: 'get',
url: /api/project/${this.projectId}/inventory,
responseType: 'json',
})).data;

Below is the request object of the API which is getting 401:

{
"message": "**

Image Image Image

**",
"name": "AxiosError",
"stack": "AxiosError: Request failed with status code 401\n at ce (/js/chunk-vendors.9cdbf3a4.js:308:157977)\n at XMLHttpRequest.g (/js/chunk-vendors.9cdbf3a4.js:308:162602)\n at sn.request (/js/chunk-vendors.9cdbf3a4.js:308:170794)\n at async a.loadAppsDataFromBackend (/js/app.98f56337.js:1:257488)\n at async a.created (/js/app.98f56337.js:1:257215)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": [
"xhr",
"http",
"fetch"
],
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json, text/plain, /"
},
"baseURL": "/",
"method": "get",
"url": "/api/apps",
"responseType": "json",
"allowAbsoluteUrls": true
},
"code": "ERR_BAD_REQUEST",
"status": 401
}

Impact

Web-Frontend (what users interact with)

Installation method

Docker

Database

Postgres

Browser

Chrome

Semaphore Version

2.13.14

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

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