silexlabs / unifile

Unified access to cloud storage services through a simple web API.
https://silexlabs.github.io/unifile/
MIT License
144 stars 31 forks source link

strange error message #152

Open lexoyo opened 5 years ago

lexoyo commented 5 years ago

in some cases, the session contains { state: '***********', account: {} } i believe it is when a token has expired in this case an error is thrown:

Cannot read property 'Symbol(Symbol.iterator)' of undefined

that's as far as i went in debugging

JbIPS commented 5 years ago

Do you have a line number?

lexoyo commented 5 years ago

I believe it is in getInfo in my case but it may be in all methods too?

lexoyo commented 5 years ago

And maybe with other services too

JbIPS commented 5 years ago

Do you remember the connector you were using at that time? Was it GitHub?

lexoyo commented 5 years ago

I don't remember but I guess we should add a unit test with an empty account in the session