The word "city" is a metonym for the people of the city. Possible meanings are 1) the words "went up to the heavens" is an idiom for "was very great." Alternate translation: "the people of the city cried out very loudly" or 2) the words "the heavens" is a metonym for the people's gods. Alternate translation: "the people of the city cried out to their gods" (See: [[rc://en/ta/man/translate/figs-metonymy]] and [[rc://en/ta/man/translate/figs-idiom]])