You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which means the current baseURL is ignored and the base /api is expected to be routed. Just making that api rather than /api would ensure it is kept in the current context, or simply making it configurable if it isn't already.
To Reproduce
Steps to reproduce the behaviour:
While running in the browser:
Describe the bug
We run the
carta-backend
andcarta-frontend
:In the browser, we serve it at some generated session ID:
https://example.com/sessions/carta/28938
Which works for most things, other than accessing the API endpoints (
layout
,database
).The
apiAddress
is looked up in the/config
document:https://github.com/CARTAvis/carta-frontend/blob/dev/src/index.tsx#L36
This is hard-coded to be an absolute path, if enabled (
/api
):https://github.com/CARTAvis/carta-backend/blob/dev/src/HttpServer/HttpServer.cc#L111
Which means the current baseURL is ignored and the base
/api
is expected to be routed. Just making thatapi
rather than/api
would ensure it is kept in the current context, or simply making it configurable if it isn't already.To Reproduce
Steps to reproduce the behaviour:
While running in the browser:
PUT
is trying to use https://example.com/api/database/layoutExpected behaviour
Keep the API calls in the current context, under the current
baseURL
as declared in:https://github.com/CARTAvis/carta-frontend/blob/dev/src/index.tsx#L32
Platform info (please complete the following information):
The text was updated successfully, but these errors were encountered: