Internal Server Error: failed to process metrics correctly