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

Use correct method to return an HTTP response in proxy server #87

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

K-Phoen
Copy link
Member

@K-Phoen K-Phoen commented Sep 23, 2024

Fixes #86

I could reproduce the issue locally and noticed that the HTTP call made by the proxy to get the dashboard page from Grafana Cloud was hanging (the HTML was fetched and served, but the HTTP connection didn't close).

I noticed that we used the write() function to send the response to the client, while the Express documentation mentions the send() function. Using it seems to solve the issue.

@K-Phoen K-Phoen self-assigned this Sep 23, 2024
@K-Phoen K-Phoen requested a review from a team as a code owner September 23, 2024 10:29
@K-Phoen K-Phoen merged commit 5d67471 into main Sep 24, 2024
1 check passed
@K-Phoen K-Phoen deleted the issue-86 branch September 24, 2024 09:18
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

Successfully merging this pull request may close these issues.

Unable to open dashboard with Grafana Cloud instance configured
3 participants