Lucas Gut Galan's blog

Towards RESTfulness


Lucas Gut Galan photo IG’s journey towards RESTfulness began as a set of REST APIs built for our mobile platforms as an aggregating façade over our internal services. Two years into the journey we realised that we were building an inflexible monolith that tried to support front-ends with very different user experiences, and which required constant enhancements. Change became painful.

Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[25006]: Read only sql transaction: 7 ERROR: cannot execute DELETE in a read-only transaction: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 733315814610b4df18e05a3.50085863 ) in lock_release_all() (line 269 of /var/ig/webcontent/drupal/includes/lock.inc).