semaphoreui / semaphore

Modern UI for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.38k stars 1.05k forks source link

Problem : When attempting to run an Ansible task using the Semaphore API, I receive a 200 status response, but the response body contains HTML with the message: "We're sorry, but the web doesn't work properly without JavaScript enabled. Please enable it to continue." and the task never gets triggered.This functionality was working correctly a month ago, and the authentication API endpoint is still functioning as expected. #2369

Closed chakib2002 closed 3 days ago

chakib2002 commented 4 days ago

Issue

For example the token retrieval API endpoing is functioning correctly.

image

However, when I attempt to run an Ansible task at /projects/:project_id/tasks, I receive a 200 status response with an HTML message stating: "We're sorry, but the web doesn't work properly without JavaScript enabled. Please enable it to continue."

image

I am using semaphoreui/semaphore:latest image.

It used to work fine, but after pulling the image again, this issue started occurring.

Impact

Web-Backend (APIs)

Installation method

Docker

Database

MySQL, Postgres

Browser

No response

Semaphore Version

I am running the docker image : semaphoreui/semaphore:latest

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

chakib2002 commented 3 days ago

the issue was with the Endpoint url

It should have been : api/project/:project_id/tasks