Closed severinrudie closed 6 years ago
Theories:
for (const key in storedIssueToPRs) {}
is iterating over non-key properties of the returned value; these are not expected but theoretically not impossiblestorage.get
on a key without a value will return an object with {key: undefined}
We're storing a Set
in the DB: the docs say it can only store primitives and arrays. Also, we (I think) we previously got burned in #30 for storing non-primitive types in the db that seemed to work in testing so this is the likely culprit.
@Baron-Severin I made a speculative fix as I am unable to reproduce. After upgrading, please let me know if you see the issue again!
This is fixed in v0.5.1.
Links from issue to PR, and links from PR to issue are not appearing. I am reproducing this ~90% of the time.
We found the following error in my logs:
TypeError: storedIssueToPRs[key] is not iterable