-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ExceptionsManager.js:180 Unhandled promise rejection RangeError: Maximum call stack size exceeded when consume api #1705
Comments
I have the same issue but with the latest ignite as shown below. It's a very strange issue. When a call is made using apisauce, it executes but does not return to the mobx state tree.
|
The problem seems to stem from the async methods in the api |
I'm also not sure about this. I also facing issue of MST Store is not working as expected in Release Mode, compare to debug mode. Guess i will let this boiler plate go :( |
This is a great boilerplate, however, there seems to be an issue with async and apisauce (axios) and use fetch in the api. If you make the method a sync method it should work. i.e
|
Any updates on this? I'm probably facing the same issue. |
Any updates on this? I'm facing the same issue too. |
You can use my workaround to bypass this bug as shown in the snippet below. The only difference here is that getUsers() is not an async function but returns an async function.
|
I'm also having this issue and unfortunately osiloke's workaround is not working for me. |
If you are not using expo, adding |
This worked for me. Thank you. |
Using Expo here and adding @babel/plugin-transform-async-to-generator to babel.config.js worked. |
The issue still happen |
Also using Expo, this didn't fix it. My console is full of these errors. It is indeed very strange. Like @osiloke, I have to console.log to get the API calls to complete. However, I'm not using apisauce, I'm using I've tried tracking this error down but I have no idea where to find the issue and the error logs are not helpful at all. |
I have this issue also with the latest ignite boilerplate version 7.5.0. Just apply the patch file on the new created app. Steps to reproduce
Post comment |
I've managed to fix this (just as a workaround) by removing the |
@poplaw It did the trick |
I'm going to piggyback this. As a newcomer to react native with this boilerplate, I ended up wasting 4 hours because my generator called an API and would not return to the caller. I don't know why this fixed it, but it did. 👍 |
I'm going to get someone on this issue -- thank you! |
Also worked for me. in case anyone else was having issues, this had been giving me a fit when trying to get |
I'm having the same issue with potentially related issue: storybookjs/react-native#20 |
if removing toggle storybook fixes this then you should check this again now that the fix in #1906 has been merged. You can also try applying the patch from the PR manually to your project. |
Even doing something like:
Was also triggering this for me
Removing the This seemed to fix the issue even after re-adding the ToggleStorybook 👍 Thanks @dannyhw ! |
@jamonholmgren I think maybe this issue could be closed since it looks like its fixed by #1906 |
Just some info if someone needs storybook and still facing issues: If I remove < ToggleStorybook > as proposed, it works, but thats just a workaround, the real issue is caused because I'm executing my code "too early" in a useEffect() just at the app startup and that has some conflict with storybook initialization (I guess). If I delay that useEffect() action (in my case I'm launching a mobx action to call the server API inside of It) for example with a TimeOut of 500ms, everything works well. |
Our team has decided to move away from Storybook altogether. We will be removing it in Ignite v8: Maverick. Meanwhile, the reported issue should be resolved with #1906 (thank you!); and for users that prefer not to patch, removing the |
What's going on?
Having ExceptionsManager.js:180 Unhandled promise rejection RangeError: Maximum call stack size exceeded
Steps to reproduce
ignite doctor
results:System
platform darwin
arch x64
cpu 12 cores Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
directory PizzaApp /Users/xx/Projects/PizzaApp
JavaScript (and globally-installed packages)
node 16.0.0 /usr/local/bin/node
npm 7.10.0 /usr/local/bin/npm
@angular/cli 11.2.11
http-server 0.12.3
npm 7.10.0
yarn 1.22.10
yarn 1.22.10 /usr/local/bin/yarn
Ignite
ignite-cli 6.12.2 /Users/xx/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite
ignite src build /Users/xx/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build
Android
java 1.8.0_292 /usr/bin/java
android home - undefined
iOS
xcode 12.5
cocoapods 1.10.1 /usr/local/bin/pod
The text was updated successfully, but these errors were encountered: