If you're experiencing a continuous network error while running Statsig 0.23.0 in a Python 3.9 environment, it's important to first understand the environment in which you're running the Statsig SDK and the version you're using.
If the error is occurring locally and continuously, the Statsig SDK will keep retrying and returning the same error. To debug this, you can send a curl command to our events API from your local environment. Here's an example of how to do this:
bash curl -X POST \ 'https://events.statsigapi.net/v1/log_event' \ --header 'statsig-api-key: <YOUR SDK KEY>' \ --header 'Content-Type: application/json' \ --data-raw '{"events": [{"user": { "userID": "1" }, "time": 1667512336, "eventName": "test_event"}]}'
This command sends a test event to the Statsig events API. If this command works, it means your local environment can successfully send requests to the Statsig API. If it doesn't, you may need to check your local network settings, such as DNS or ad-blockers, which could be blocking requests to the API.
Remember, the Statsig SDK is designed to retry sending events if errors are encountered. If you're still experiencing issues after trying the above steps, please provide more details about your environment and the error you're encountering for further assistance.