getVariableCollectionByIdAsync returns error

I need help guys to figure out how to get variable collections from a published library.

I have created a few variables in a library file, and created a plugin to fetch these variable collections using a plugin in a different Figma file.

So, first I am getting variable collections & variables using REST API

Next, by iterating on the variable collections object here comes the problem

I keep getting error ““MemPool/Node: cannot dereference nullptr” in countError (FGMemPool.cpp)”

Keep in mind I used both id & subscribed_id but still doesn’t work

Any ideas about this error?

@Hosam_Elshazly Did you ever figure this one out? I’m stuck on this same error, not really sure what I could be doing wrong.

Try using this: figma.teamLibrary | Plugin API first, then check if variable collection exists via key. This error might be happening because the library variable collection is not enabled in the file. Just a theory.