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

0.2.11 - Stack overflow when running without analytics #512

Closed
nonzeronucleus opened this issue Mar 24, 2018 · 7 comments
Closed

0.2.11 - Stack overflow when running without analytics #512

nonzeronucleus opened this issue Mar 24, 2018 · 7 comments

Comments

@nonzeronucleus
Copy link

Bug

What is the current behavior?

Running a React app using aws-amplify v0.2.11 with analytic disabled (aws_app_analytics: "disable" in my config) results in a repeated "uncaught (in promise) exceed buffer size" error after running for a couple of minutes.

The error is coming from

./node_modules/aws-amplify/lib/Analytics/Analytics.js.AnalyticsClass._putToBuffer

What is the expected behavior?

For the app to run without these errors.

Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?

Running React (simple app based on Create-react-app), using aws-amplify v0.2.11 on MacOS with Chrome 65.0.3325.181

Identical app running with v0.2.09 of aws-amplify works fine, without any errors.

@powerful23
Copy link
Contributor

@nonzeronucleus You need to disable Analytics module in your code by Analytics.disable() or set disable in the configuration. Details in this doc. And also for now this is only implemented in the beta version which you can install by npm install aws-amplify@beta

@nonzeronucleus
Copy link
Author

Thanks. The beta seems to fix the issue.

@sanjosedennisns7593
Copy link

currently tackling the same issue, i tried to install aws-amplify@beta, still ain't working.

@powerful23
Copy link
Contributor

powerful23 commented Apr 16, 2018

@sanjosedennisns7593 did you try the latest version?

@sanjosedennisns7593
Copy link

@powerful23 yup, i'm currently using the latest version.

@powerful23
Copy link
Contributor

@sanjosedennisns7593 Can you restart your app to see if it still happens? This error should have been fixed in #644

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants