SO-Close-Vote-Reviewers / UserScripts

Various user scripts that add features to the review queue or to the chat room
Other
56 stars 41 forks source link

Request Archiver Enhancement: Ajax error is misleading/vague when destination room is frozen #224

Open Tyler-H opened 11 months ago

Tyler-H commented 11 months ago

After SOCVR was re-opened, I encountered this error when trying to move messages to the Graveyard:

$.ajax encountered an error moving some posts. See console for details. error: Not Found.

and in the console:

AJAX Error moving some posts - status: error - error: Not Found - targetRoomId: 90230

image image2

Upon investigation, I found that the graveyard was frozen, so only moderators could move messages into it. Once the graveyard was unfrozen, the error disappeared and I was able to move messages again via the script.

If a destination room is found but is frozen, can the error message be updated to indicate that, rather than indicating a 'not found' error?

makyen commented 11 months ago

Is there anything in the AJAX response from SE/SO that provides better information? I thought it was just forwarding the error declared in the AJAX response, but there might be more information. Beyond that, it would be significant work to determine the exact state of the room. OTOH, additional text could be added to the alert letting the user know that the problem could be that they just don't have access to post messages into the room.