我正在尝试在本地测试Mixpanel,但始终会遇到此SSL错误:
MixpanelException at /register/D66Ly6ngyQ3I5boSQc9lBlrwiC2m3qbFAc5uMy3mstsZZcpFGXbi9TMUJf9hsGyh/
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)>
现在我找到了here的解释,说明了如何使用Ruby解决此问题:
# config/initializers/mixpanel.rb
if Rails.env.development?
# silence local SSL errors
Mixpanel.config_http do |http|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
end
但是,我找不到适用于Python的任何解决方案。您对如何在本地测试Mixpanel有任何想法吗?