gpt4 book ai didi

ruby-on-rails - 延迟作业 : can't run rake jobs:work

转载 作者:行者123 更新时间:2023-11-29 14:11:57 25 4
gpt4 key购买 nike

数据库:PostgreSQL 9.2

延迟作业(3.0.5)

Delayed_job_active_record (0.4.4)

当我尝试运行 rake 任务时,rake 中止了:

 "invalid byte sequence in UTF-8 (argument error)"

我不知道这是什么意思。

因为它可能真的很难调试,任何建议都很有用:可能我需要重新安装一些东西,尝试另一个 gem,或者任何东西。

提前致谢。

[Worker(host:HP-�� pid:4768)] Starting job worker
rake aborted!
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb:16:in `block in trace_on': invalid byte sequence in UTF-8 (ArgumentError)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb:14:in `map'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/trace_output.rb:14:in `trace_on'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:328:in `trace'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:183:in `display_error_message'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:169:in `rescue in standard_exception_handling'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:159:in `standard_exception_handling'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
from C:/Ruby193/bin/rake:23:in `load'
from C:/Ruby193/bin/rake:23:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'

最佳答案

Ruby 1.9.3,对吧?

在你的 Rakefile(以及任何非 ascii 字符的文件)的顶部,包括以下内容:

# encoding: utf-8

关于ruby-on-rails - 延迟作业 : can't run rake jobs:work,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16310321/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com