biocompute-objects / portal_userdb

1 stars 1 forks source link

Saving BCO Error on TST #405

Closed Kirans0615 closed 3 months ago

Kirans0615 commented 3 months ago

Describe the bug When you go to BCODB and check if your BCO is visible after validating and saving it you get the alert: Request Failed with Status Code 403. I have tried reloading many times and keep getting the same error. This error existed after uploading RAW JSON views too, sometimes giving the error 400 instead. This issue only exists on TST not PRD.

To Reproduce Steps to reproduce the behavior:

  1. Go to BCODB and check if your BCO is visible under "MY BCO"
  2. See error

Expected behavior BCOs saved and validated should be shown.

Screenshots Capture

tiwa1154 commented 3 months ago

I have the same issue.

However, I can view stored BCOs if I use the filter function.

HadleyKing commented 3 months ago

On TEST, when navigating to https://test.portal.biochemistry.gwu.edu/bcodbs on the initial load the server returns a 403 error. This is an authentication error.
Screenshot 2024-07-12 at 8 53 39 AM

Using the inspect panel we can see that is the error message returned from the BCODB: Screenshot 2024-07-12 at 8 55 00 AM

Since this error is present in TEST but not PRD we can guess that it is a problem with the token that is submitted for the search on the initial render. This is the request from a local deployment that succeeds: Screenshot 2024-07-12 at 8 59 25 AM

And this the the same from the TEST deployment that does not pass: Screenshot 2024-07-12 at 9 00 28 AM

tiwa1154 commented 3 months ago

Fix environment file on the test server

tiwa1154 commented 3 months ago

Hadley fixed the issue