We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I got receive error report from Sentry.
I have no idea what is this.
the function in core/http/http.ts looks like:
core/http/http.ts
export const apiInstance = axios.create({ timeout: API_TIMEOUT, baseURL: BASE_URL, }); /** * handle HTTP GET to RestAPI */ export const get = <T = any>( endpoint: string, queryParam: any = {}, config?: AxiosRequestConfig ) => { /** * Url endpoint */ let url = endpoint; /** * Add query param when `queryParam` is given */ if (queryParam && Object.keys(queryParam).length > 0) { url = url + '?' + serializeParam(queryParam); } const newConfig: AxiosRequestConfig = { // attach config from param function ...config, headers: { ...config?.headers, 'content-type': 'application/json', }, }; return apiInstance.get<T>(url, newConfig); };
Up until now only 1 event occur in sentry. Is it possible error from axios lib? Or something wrong with my implementation?
Its so rare, I cant even reproduce it.
Sentry should not showing an error.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I got receive error report from Sentry.
I have no idea what is this.
the function in
core/http/http.ts
looks like:Up until now only 1 event occur in sentry. Is it possible error from axios lib? Or something wrong with my implementation?
To Reproduce
Its so rare, I cant even reproduce it.
Expected behavior
Sentry should not showing an error.
Environment
Thank you in advance!
The text was updated successfully, but these errors were encountered: