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

Server keep crashing #139

Closed
tuhinpal opened this issue Feb 5, 2024 · 3 comments
Closed

Server keep crashing #139

tuhinpal opened this issue Feb 5, 2024 · 3 comments

Comments

@tuhinpal
Copy link

tuhinpal commented Feb 5, 2024

Hi! I was trying to give wrong API key and check what happened, the server keep crashing with error. I am using @axiomhq/js and use batch ingest method.

Error: Forbidden
    at FetchClient.doReq (C:\Users\tuhin\OneDrive\Desktop\Code-Visadb\ai-reels-render\node_modules\@axiomhq\src\fetchClient.ts:42:29)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Batch.flush (C:\Users\tuhin\OneDrive\Desktop\Code-Visadb\ai-reels-render\node_modules\@axiomhq\src\batch.ts:61:17)

Is there any implemented error boundary which prevent app from crashing in any unwanted situations like, axiom server down?

@dasfmi
Copy link
Collaborator

dasfmi commented Feb 7, 2024

I am working on handling those exception now, finalizing the PR.

@dasfmi
Copy link
Collaborator

dasfmi commented Feb 9, 2024

we have a released a new version of axiom-js and axiom-pino that would solve the exceptions handling in axiom-js. on Monday we will continue investigating Pino package and add some tests to ensure that doesn't happen again. let us know if this works our for you, and if there is any thing we can improve on the new onError() method.

@tuhinpal
Copy link
Author

Thanks! closing...

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

No branches or pull requests

2 participants