Page MenuHome

422 on project edit due to header_node field
Open, NormalPublic

Description

When editing the project "Hero", for example updating some node_type props I get:

[Mon Jan 08 14:28:53.250706 2018] [wsgi:error] [pid 13036:tid 140624720283392] pillarsdk.exceptions.ResourceInvalid: Failed. Response status: 422. Error message: b'{"_issues": {"header_node": "value \\'5a1c2b838ac31b30f7f17cf0\\' must exist in resource \\'nodes\\', field \\'_id\\'."}, "_status": "ERR"}'

It looks like it's due to the header_node missing?

Details

Type
Bug

Event Timeline

Francesco Siddi (fsiddi) lowered the priority of this task from Needs Triage by Developer to Normal.Jan 8 2018, 3:42 PM
Francesco Siddi (fsiddi) created this task.

By actually using the brain and reading the error, it turns out that that the node referenced in header_node should exist (not be deleted). As a solution, we should make sure that when deleting a node in a project, we also check if it's used in the the project header_node property.