Trying to use Transport API's suggested workaround, and failing