DependencyTrack / DependencyTrack/dependency-track

Cant access API for login POST http://localhost:8081/api/v1/user/login 404 (Not Found)

Open
#2,205 6 comments 1 reaction 0 assignees View on GitHub
defect in triage
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

When I try to login I get a "POST http://localhost:8081/api/v1/user/login 404 (Not Found)" error.

The docker container starts up fine:
![image](https://user-images.githubusercontent.com/50834586/204504773-0274ec8d-b79e-4e61-8417-094e10fa2915.png)

As far as I can see the frontend container also includes the correct API path:
![image](https://user-images.githubusercontent.com/50834586/204505268-0d60e48c-613d-4fa6-be78-b373541d41b0.png)

When I try to ping the port 8081 it works:
![image](https://user-images.githubusercontent.com/50834586/204505013-6c08221a-cbfb-465c-b52a-d1343f65b3c0.png)

I dont have this behavior, which is refused not 404: https://github.com/DependencyTrack/dependency-track/issues/1074

### Steps to Reproduce

Run these commands:
https://docs.dependencytrack.org/getting-started/deploy-docker/#quickstart-docker-compose

Run Chrome with flags to prevent CROS errors
--disable-web-security --user-data-dir=~/devChromeTemp --cookies-without-same-site-must-be-secure

### Expected Behavior

Being able to access the API

### Dependency-Track Version

4.6.1

### Dependency-Track Distribution

Container Image

### Database Server

N/A

### Database Server Version

_No response_

### Browser

Google Chrome

### Checklist

- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.