相关疑难解决方法(0)

Rails:调用fork()时可能正在另一个线程中

升级到OS10.14后,使用时出现此错误 Httparty

    response = HTTParty.get('http://api.stackexchange.com/2.2/questions?site=stackoverflow')
objc[4182]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called.
objc[4182]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Run Code Online (Sandbox Code Playgroud)

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES在启动Rails控制台之前,我已经尝试 过了。

但这没有用。

ruby-on-rails

9
推荐指数
4
解决办法
2815
查看次数

标签 统计

ruby-on-rails ×1