Are failed private message requests cached?

(Parth Shah) #1

We have a slightly convoluted use case, but we attempt to create a PM to a group of users. At times some of those users don’t yet exist in Discourse. We create the missing users on the fly and attempt to re-post, but subsequent posts fail with the same error message. Are POST requests being cached?

Steps to reproduce :

  1. Try to create a private message to user that doesn’t exist via api. --> API correctly returns 422 status code, target user not found.
  2. Create missing target user via API.
  3. Retry step 1 --> still fails with the same error code.
  4. Update the post body and retry --> PM successfully posted.

I’d expect step #3 to create PM.