-
Notifications
You must be signed in to change notification settings - Fork 214
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 Sentry client setup #5297
Fix Sentry client setup #5297
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,14 +19,16 @@ const getSources = defineCachedFunction( | |
async (mediaType: SupportedMediaType, event: H3Event) => { | ||
const apiUrl = useRuntimeConfig(event).public.apiUrl | ||
|
||
consola.info(`Fetching sources for ${mediaType} media`) | ||
consola.info(`Fetching ${mediaType} sources.`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for making the logs more grammatically correct 😁. |
||
|
||
return await $fetch<MediaProvider[]>( | ||
`${apiUrl}v1/${mediaSlug(mediaType)}/stats/`, | ||
{ | ||
headers: { | ||
...getProxyRequestHeaders(event), | ||
...userAgentHeader, | ||
"Content-Type": "application/json", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added the headers to handle the fluke when sometimes the API returns HTML response. |
||
Accept: "application/json", | ||
}, | ||
} | ||
) | ||
|
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI was failing because it was using the latest Storybook version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a weird error to have!