Bug #6581
closedRequesting template via AJAX causes stack level too deep error.
Description
Started POST "/compute_resources/[template_id]/template_selected" for 127.0.0.1 at 2014-07-11 20:52:08 +1200
Processing by ComputeResourcesController#template_selected as /*
Parameters: {"template_id"=>"00000000-0000-0000-0000-000000000000", "id"=>"1-oss"}
User Load (0.1ms) SELECT "users". FROM "users" WHERE "users"."id" = ? LIMIT 1 "id", 3
Setting current user thread-local variable to admin
ComputeResource Load (0.1ms) SELECT "compute_resources".* FROM "compute_resources" WHERE "compute_resources"."id" = ? ORDER BY compute_resources.name LIMIT 1 "id", "1-oss"
Completed 500 Internal Server Error in 746.0ms
SystemStackError (stack level too deep):
Updated by Dominic Cleal over 10 years ago
- Category changed from Templates to Compute resources - oVirt
Updated by Leon Strong over 10 years ago
pretty sure this is related to something in the fog_json gem,
def self.encode(obj)
MultiJson.encode(obj)
rescue => err
raise EncodeError.slurp(err)
end
Seems to be where it's going nutso.. i'm just not entirely sure what to do in order to resolve it as it seems to work fine when not used inside our rails environment - that an i'm not 100% convinced it's not something dumb i've done locally. can someone else confirm it?
Updated by Shira Maximov almost 5 years ago
- Status changed from New to Closed
I believe this issue is not relevant anymore, there is no such API call
POST "/compute_resources/[template_id]/template_selected"
Also, this bug is open for 5 years already with no fix or any comments, so i'm closing this issue.