this fixes __str__ in apierror for me