error handling for instagram