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

Handle log responses as text #7776

Merged
merged 1 commit into from
May 25, 2023
Merged

Handle log responses as text #7776

merged 1 commit into from
May 25, 2023

Conversation

samitiilikainen
Copy link
Contributor

Logs are handled as string and log endpoint always responds as Content-Type: text/plain but empty responses are converted to empty objects in JsonApi.

In case of resolved non-string log response, consider it empty (string).

Fixes error:
Screenshot 2023-05-25 at 11 13 18

Log endpoint always responds as `Content-Type: text/plain` but empty responses are converted to empty objects in JsonApi.

In case of resolved non-string log response, consider it empty (string).

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
@samitiilikainen samitiilikainen requested a review from a team as a code owner May 25, 2023 08:35
@samitiilikainen samitiilikainen requested review from Iku-turso and gabriel-mirantis and removed request for a team May 25, 2023 08:35
@Nokel81 Nokel81 added the bug Something isn't working label May 25, 2023
@Nokel81 Nokel81 added this to the 6.5.0 milestone May 25, 2023
@Nokel81 Nokel81 merged commit 90c449c into master May 25, 2023
@Nokel81 Nokel81 deleted the fix/handle-logs-as-text branch May 25, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants