-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request failed with status code 400 #152
Comments
Hi @ricovitch, thank you a lot for your bug report! I suspect that the issue is the pretty old version of the Axios library I'm using. Reading their documentation they mention that using proxy env variables should work out-of-the-box. I plan to upgrade all figma-export dependencies and drop the support for unmaintained Node.js versions. Hopefully, this will solve your issue. Otherwise, I'll introduce a new configuration to operate through a corporate proxy. |
Hi @marcomontalbano thank you for the quick answer. I created a feature request in figma-js github project to ask for axios update : jemgold/figma-js#65 That could solve this issue I imagine 🙂 |
Hi @ricovitch , I just released the Lastest version of Axios should support PROXY env vars. Inside their README they mention:
Can you install |
Thanks for the update @marcomontalbano I'll share this internally so we can have a try and get back to you |
Hi @ricovitch, I just released the |
Hi @marcomontalbano just tried with v4.8.0
Maybe related to this axios issue : axios/axios#4533 (we are using port 3128 for our proxy url) |
Thanks a lot @ricovitch for the feedback! |
Hi @ricovitch! Sorry if I bother you, but I don't have a way to test a corporate proxy. I realized that in the previous version You could try to install the latest figma-export version {
"overrides": {
"axios": "^1.6.7"
},
"resolutions": {
"axios": "^1.6.7"
}
} |
No worry @marcomontalbano actually I thank you for giving your time on this topic, since you are not concerned with it yourself 🙂 |
Hello,
I'm testing figma export cli, in the goal of exporting svgs from figma file.
I created a Personal Access Token, and checked that using it through curl commands works fine.
But the same thing does not work through @figma-export/cli
I get the following error whatever the configuration I use
I use this npm script :
dotenv figma-export use-config
With an .env file providing FIGMA_TOKEN, and the following
.figmaexportrc.js
file contentAny hint on how I can debug this ?
I'm operating through a corporate proxy, but curl commands work (I have HTTP_PROXY and HTTPS_PROXY env vars defined)
I thing it uses axios internally, that should also take into account HTTP_PROXY env vars.
Am I missing something ? Or how can I debug the error further ?
The text was updated successfully, but these errors were encountered: