Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
Unleash

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Does the export work as expected?#9117

Answeredbydaveleek
JE4GLE asked this question inQ&A
Discussion options

Hi! I'm using the Export → Bootstrap feature to mock Unleash flags for automated CI/CD tests.

  1. I use the following button to export the current configuration:
Bildschirmfoto 2025-01-18 um 17 38 21
  1. I import the saved .json file in my Node.js Unleash config:
bootstrap:{filePath:import.meta.env.MODE==='test' ?'tests/static/unleash_bootstrap.json' :undefined},

However, when starting the Node.js server, I get the following error, suggesting that the configuration is not quite correct:

[WebServer] Error: Unleash Repository error: feature.strategies should be an array, but was undefined, feature.enabled should be an boolean, but was undefined[WebServer]     at Repository.validateFeature (/Users/jan-nicklas/Entwicklung/contacts/node_modules/unleash-client/lib/repository/index.js:88:25)

Here is the features part of the exported json file:

{"features": [    {"name":"auth.signup","type":"kill-switch","project":"default","stale":false,"impressionData":false,"archived":false    }  ]}

Is there an error on my side or with the Export/Import feature?

You must be logged in to vote

Hello@JE4GLE! The import/export feature is for migrating between Unleash instances and is not compatible with SDKs.
To retrieve SDK-bootstrap compatible json you will need a client api token (server side token) and perform a GET on the /api/client/features endpoint!

Replies: 1 comment

Comment options

Hello@JE4GLE! The import/export feature is for migrating between Unleash instances and is not compatible with SDKs.
To retrieve SDK-bootstrap compatible json you will need a client api token (server side token) and perform a GET on the /api/client/features endpoint!

You must be logged in to vote
0 replies
Answer selected byJE4GLE
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@JE4GLE@daveleek

[8]ページ先頭

©2009-2025 Movatter.jp