Issue
After starting Split Synchronizer process (version 1.6.0 and above), Synchronizer debug log and Synchronizer admin dashboard show the error below on all its network Post calls:
"POST method: Status Code: 404 - 404 Not Found"
Root Cause
The Error is due to incorrect Split API key passed to the Synchronizer. Which caused the Synchronizer inability to find to the Account in the Split cloud.
Solution
First verify the API key used by Synchronizer is correct, Synchronizer API key must be SDK type, the API keys are viewed from Admin settings on the API keys page:
"https://app.split.io/org/[Your Account ID]/admin/apis"
Second make sure to pass the API key. There are many ways to do it:
- Through command line arguments:
-api-key <APIKEY>
-
In a JSON file that Synchronizer uses for configuration. The apiKey property is the one that will be used to issue requests against Split Cloud
-
Alternatively, if the Synchronizer is used only in proxy mode (not Redis), the "auth" section and "sdkAPIKeys" is used to allow setting custom apikeys for internal use, which allows the SDK to use the internal custom api key.
-
If the Synchronizer is running within the Split packaged docker image, make sure to use the parameter below:
-e SPLIT_SYNC_API_KEY <APIKEY>
Comments
0 comments
Please sign in to leave a comment.