openAI API return error : cannot read property 'FormData'


I try to create my first plugin.
I would like use openAI API, but the request return this error :

cannot read property 'FormData'

If I try outside the plugin (in the nodejs app or with Postman), it’s work.

Anyone know where the problem comes from?

getting the same error- did you ever figure this out? I think it may be the figma electron app not using formdata?

Same. Any luck?