I am getting the following error when trying to run a process as a trigger. The error occurs when it is trying to add the items to the queue:
Handle Error: Operation returned an invalid status code ‘BadRequest’
I am not able to reproduce this error in our dev environment using the same configuration for the Queue, Trigger, and Process Code. The error occurs when running in production as a trigger.
I have already verified the following:
The same exact configuration works without errors in dev.
Unique Reference is set to No on the queue.
Bulk Add Queue is used a few times in my application. The first time it is used, it works. The second time, is when this error occurs.
The queue is using no unique reference, no auto retry, description is blank, specific Data JSON Schema is blank, Output DataJSON Schema is blank, Analytics Data JSON Schema is blank, Enable SLA for this queue is off.
The process runs successfully using a different queue which is specified in the csv configuration file. However, there is code in the process that if an argument is set to true, then it tries to use this different queue which is specified in the trigger arguments. I setup the same configuration in our dev environment, but it runs successfully there. This error only happens in Prod.
Any ideas on what else to look for in my Prod environment?
Thanks for the update. However, I had already looked at those posts before posting. I am assuming the issue is not #3, since this works in Dev using sample data similar to the real data (headers would be the same), but does not work in Prod which would use the same header structure.
I am trying not to edit the code again since this code has worked previously without this error. So this solution will not work for me. Also, I tried to reproduce this in dev using the same setup and same code, it does not reproduce.
Any other suggestions that do not involve editing the code?