fix: handling of non-json response from SAPI + fix bucket test