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

fix: set accept: application/x-ndjson in fetching live logs #194

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

magurotuna
Copy link
Member

@magurotuna magurotuna commented Nov 15, 2023

Fixes #188

This commit sets accept: application/x-ndjson header when fetching live logs.

image

The backend API returns newline-delimited JSON in case of accept: application/x-ndjson OR no accept header with the priority of application/json being higher than application/x-ndjson. In other words, it returns pure JSON response only when the accept header is present such that application/json has higher precedence than application/x-ndjson. So in general it defaults to newline-delimited JSON, but we got this issue because all API calls made by deployctl set accept: application/json explicitly.

@magurotuna magurotuna merged commit 5aa4fee into denoland:main Nov 17, 2023
11 checks passed
@magurotuna magurotuna deleted the fix-live-log branch November 17, 2023 07:58
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.

log streaming does not work
2 participants