handling errors with alchemyapi