ruby - Delayed_job crashing Heroku worker (YAML issue?) -
I am running on a strange issue which is causing my harrowing workers to crash. We are using delayed_job for Ruby and background jobs on the railways I am giving a job to work late by using.
This is the call that I make to "recognize" the user:
after_save {self.identify! }
Then it puts a job in the queue that looks like this:
: Worker :: User :: TrackApi Domain: https://api.getvero.com Options :: Email: ******@gmail.com: Data :: Email: ******@gmail.com : Name :? ? : First name:? :last name: ? This issue is one of those question marks: I'm not sure why they appear there instead of a string of text, it's an error that comes: Psych :: SyntaxError: (& lt; unknown & gt;): Mappings on line 7 column 14 are not allowed in this context
Unfortunately , Are just failing instead of a job .. it actually crashes the worker .. the order to process other tasks Process is not perfect.
Has anyone participated in the past on this issue? How can I format YAML in a way that it will not crash the worker?
Thank you
Look at this user It seems that he Encoding does not accept some data. Are you using UTF-8? If he enters UTF-16 then you can translate it into UTF-8 in Ruby