You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I appreciate this may be an issue with resque-web rather than this package but I wanted to check first if anyone could recreate it...
When I submit a job to be delayed it correctly adds it to redis as I'd expect however when I log into resque web and click the "delayed" tab I get an error:
URI::InvalidURIError at /delayed bad URI(is not URI?): /delayed/jobs/Namespace\Of\Job\Class?args=[%7B%....
It looks to me like an issue with the namespace of the job not being urlsafe...
Has anyone experienced this / resolved it?
p.s amazing work on this suite of packages! I couldn't live without php-resque!
The text was updated successfully, but these errors were encountered:
I've just fixed this earlier, just provide my way to fix:
The reason is resque-web try to get the URI of class name, but the class name has backslash, it's because of PHP namespace, so ruby said "Bad URI", the point is ruby didn't help us to escape the URI, so I think if I can help resque-web to escape URI...?
Then I got my workaround to fix this problem, just for reference, I know this is not may the best way.
Try to modify resque-scheduler's view in gem resource,
// find your resque-scheduler gem path and modify the delayed.erb file
vim ~/.gem/ruby/2.0/gems/resque-scheduler-4.0.0/lib/resque/scheduler/server/views/delayed.erb
// search this line
URI("/delayed/jobs/#{job['class']}?args="
// modify to
URI.escape("/delayed/jobs/#{job['class']}?args="
That's it
my screenshot:
We can get the fill class name with namespace now :p
I appreciate this may be an issue with resque-web rather than this package but I wanted to check first if anyone could recreate it...
When I submit a job to be delayed it correctly adds it to redis as I'd expect however when I log into resque web and click the "delayed" tab I get an error:
URI::InvalidURIError at /delayed bad URI(is not URI?): /delayed/jobs/Namespace\Of\Job\Class?args=[%7B%....
It looks to me like an issue with the namespace of the job not being urlsafe...
Has anyone experienced this / resolved it?
p.s amazing work on this suite of packages! I couldn't live without php-resque!
The text was updated successfully, but these errors were encountered: