Error making a POST request in a create-figma-plugin codebase

You might need to convert your “body” to a Unit8Array using TextEncoder

See this stackoverflow answer for an example: javascript - Converting between strings and ArrayBuffers - Stack Overflow

Also, I hope that’s not your actual API key, if it is, you might want to regenerate it😅

1 Like