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
Refactor internalApiRequest() and getEventFeedAction() for streaming via CLI
Fetching the event feed from the API via `internalApiRequest` wasn't
working since it returns a StreamedResponse. Fix this by only using
an output buffer in `internalApiRequest` and only calling `ob_flush`
from `getEventFeedAction` if the top-level output buffer allows it.
Also return contents from `internalApiRequest` without JSON decoding
it, since the event feed endpoint is NDJSON, *not* JSON. Explicitly
decode the JSON at the other places calling internalApiRequest`.
0 commit comments