Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 HTTP Request Error #3702

Closed
2 tasks done
spawar-apex opened this issue May 13, 2024 · 2 comments
Closed
2 tasks done

401 HTTP Request Error #3702

spawar-apex opened this issue May 13, 2024 · 2 comments
Labels
defect Something isn't working in triage

Comments

@spawar-apex
Copy link
Contributor

Current Behavior

Using the Docker Container Approach, I have deployed Frontend and APIserver container on Google Cloud Platform Cloud Run service.

Both the services are running fine and both of them use container port as 8080.

When I login to the Dependency Track using Frontend URL and enter the credentials, I'l getting an error saying 401 HTTP Request Error.

Randomly, It showed me error 401 and took me to the dashboard page but as soon as I refreshed it, It again took me to the Login page.

Upon checking the logs, looks like the frontend service /api/v1/user/self and used JWT token to authenticate to the user.

I got stuck at this issue and not sure what's missing in the configuration.

Any help would be appreacited.

Steps to Reproduce

  1. Deploy Frontend & API Server separately using Cloud Run Services.
  2. API_BASE_URL env variable in configured in the frontend service.

Expected Behavior

Upon log in to the system, it should allow me to interact with all the admin console and the dashboard.

Dependency-Track Version

4.7.x

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

15

Browser

Google Chrome

Checklist

@spawar-apex spawar-apex added defect Something isn't working in triage labels May 13, 2024
@spawar-apex
Copy link
Contributor Author

Here is the error I'm getting:

{ insertId: "66437a42000440c618118ed0" labels: {1} logName: "projects//logs/run.googleapis.com%2Fstdout" receiveTimestamp: "2024-05-14T14:50:42.281638357Z" resource: {2} textPayload: "2024-05-14 14:50:42,276 INFO [JsonWebToken] Received token that did not pass signature verification" timestamp: "2024-05-14T14:50:42.278726Z"

@spawar-apex
Copy link
Contributor Author

This was happening when I was trying to deploy OWASP Dependency Track on Google CLoud Run in GCP. Even though we deploy frontend & API using two separate services, they wont be directly able to connect to each other. This is DEPLOYMENT issue not the Dependency Track issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working in triage
Projects
None yet
Development

No branches or pull requests

1 participant