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

[Bug]: RUM client ignores PORT number in the endpoint config #594

Open
sandeeppoonia opened this issue Dec 16, 2024 · 1 comment
Open

[Bug]: RUM client ignores PORT number in the endpoint config #594

sandeeppoonia opened this issue Dec 16, 2024 · 1 comment

Comments

@sandeeppoonia
Copy link

Which web client version did you detect this bug with?

v1.13.3

What environment (build systems, module system, and framework) did you detect this bug with?

TypeScript v5.3.3, ECMAScript modules (ESM) and React v18.2.0

Is your web application a single page application (SPA) or multi page application (MPA)?

SPA

Please provide your web client configuration

{
sessionSampleRate: 1,
signing: false,
endpoint: ${window.location.origin}/api,
telemetries: ["errors", "performance", "http"],
allowCookies: true
}

Please describe the bug/issue

If we use a proxy for run endpoint, instead of directly going to actual RUM endpoint, and tries to run the webapp locally ( e.g. on http://localhost:4000/ ) the rum client makes requests to http://localhost/api/monitors/ instead of http://localhost:4000/api/monitors/ .

@sandeeppoonia
Copy link
Author

The root cause is : in DataPlaneClient where while creating the options the port is not set. So when fetch request is made, the port is not set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant