mikaelvesavuori / figmagic

Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.
https://docs.figmagic.com
MIT License
807 stars 71 forks source link

Zscaler Blocking Access to Figma API, Getting "Error: Missing one or more of required arguments: "figmaToken", "figmaUrl"" #155

Closed ericnguyen23 closed 2 years ago

ericnguyen23 commented 2 years ago

Describe the bug Running figmagic returns:

Attempting to fetch data from Figma API...
Error: Error: Error: Missing one or more of required arguments: "figmaToken", "figmaUrl" when attempting to get data from Figma API!

I'm aware there is the same issue posted and solved by removing spaces in .env file, however this one is specific to Zscaler security. I validated this by running Figma API in Postman, one with and one without attaching Zscaler PEM Certificate file.

Question is, how to I configure Figmagic to use the PEM file?

To Reproduce Steps to reproduce the behavior:

  1. run figmagic (of course you'll need to be under a network security like, Zscaler)

Expected behavior Successfully run figmagic and return tokens from Figma

Screenshots

console error Error Success

Desktop (please complete the following information):

Additional context There's a stackoverflow thread related to Zscaler npm, hope it may help: https://stackoverflow.com/questions/23788564/npm-add-root-ca

mikaelvesavuori commented 2 years ago

Hey! There is no support at the moment for this. Let me try adding that after Christmas!

ericnguyen23 commented 2 years ago

Thank you, much appreciated!

mikaelvesavuori commented 2 years ago

Hi again. I've added a very basic implementation that I'm not really sure how to test right now. It's available in 4.4.4 and release notes can be read here.

mikaelvesavuori commented 2 years ago

Feel free to open up or discuss; closing this for now.