question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native record storage non-iterable async function generator issues

See original GitHub issue

Hey @TimoGlastra @jakubkoci @karimStekelenburg, we’ve been working on compiling AFJ for use in Aries Bifold. We’ve been running into an issue with the generator functions utilized in searching for records within a React Native context. In IndyStorageService.ts we get the following error in find(), findAll(), or findByQuery() (which makes sense since they call the same generator):

[TypeError: Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.]

I’ve even tested creating an entirely new, basic generator (to just yield a number and log the number), and the same behavior is present. The previously generated aries-framework-javascript.tgz file we were using worked fine, and AFAIK the generator capabilities likely exist in this build too (although since it’s not tied to a version and I didn’t generate it I can’t guarantee it).

If this is something you’ve run into before or have recommendations to pursue, it’d be appreciated! Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
TimoGlastracommented, Apr 5, 2021

I wish every issue was solved this quickly 😃

1reaction
TimoGlastracommented, Apr 5, 2021

Nice!

A PR would be great. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

`AsyncGenerator`: does not implement `[Symbol.asyncIterator ...
Bug Description AsyncGenerator instances in Hermes do not conform to the async iterable protocol as they do not implement [Symbol.
Read more >
React Native AsyncStorage problem with non async function
Seems the problem is related to Async or Await, when calling GetUUID() method we are not getting either a new UUID or the...
Read more >
TypeError: 'x' is not iterable - JavaScript - MDN Web Docs
When they are not called, the Function object corresponding to the generator is callable, but not iterable. Calling a generator produces an iterable...
Read more >
typeerror: (intermediate value) is not iterable - You.com | The AI
I just met same problem when I use Blubird's PromisifyAll to add async function for request pacakge. import Promise from 'bluebird'; ...
Read more >
How to load data in React with redux-thunk, redux-saga ...
In this article I'm trying to compare different approaches to solving this problem. Let's define the problem first. Component X is one of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found