I’m getting a lot of log errors with the messages:
console error: Amplitude Logger [Error]: TypeError: Failed to fetch
console error: Amplitude Logger [Error]: TypeError: Load failed
We are using de JS Library on a Nuxt App. Any ideias about how to fix it?
Best answer by eddie.gaonaView original
@fernando nice to meet you!
Can you link to the version of the JS SDK you are using, please?
Are you referring to this JS SDK, here?
We have an saas and use Datadog to monitoring our logs. For some reason, we are we are receiving a lot of this Amplitude errors.
Are you unable to log events to your project or do some events get ingested and others don’t? Can you share how you are initializing the SDK but remove any sensitive data such as the API Key.
@eddie.gaona , we receive around 1MM events a month.
I don’t think I can share my code because there is a lot of business logic. Maybe you can check a live example?
You can fill this form and see the events been post https://form.respondi.app/NNMni5MV
@fernando no worries makes sense! I will check out internally and return with updates once they are available. Thank you!
@fernando hope you are doing well!
We have tried to replicate the issue you are reporting with no luck so far.
To get more details, could you share the npm package and version of our SDK you are using, and how the SDK is being used? Also note that Nuxt supports SSR (Nuxt - Server Side Rendering). Our SDK might have limitations in the SSR case.
@eddie.gaona , for all my tests everything works as well. However, we still receiving hundreds of erros a day. Maybe there is some kind of quote limit?
About our SDK, it’s "@amplitude/analytics-browser": "^1.3.0"
The app is running in SSR, but the library is loaded in client side only. What is the best way to implement Amplitude with Nuxt SSR?
@eddie.gaona , any news about this issue?
@fernando , as there are no other details to go off of there is not much we can advise at this time. Would it be possible for you to provide the call stack or a way to reproduce it.
As for best practices in Nuxt implementation, we have an example for the Next (Amplitude-TypeScript/examples/browser/next-app at main · amplitude/Amplitude-TypeScript · GitHub) (similar to Nuxt). I am not an expert on SSR, but if you have any specific question related to amplitude SDK in their SSR app, I am happy to help.
I use on my site Marketing Analytics Browser
Сonnected and use CDN package