Thanks, Sebastien. I appreciate that you and the rest of the team are so quick to respond to issues brought up here in the forums.
However, I think my use case is too rare to justify the team taking their time to track down a problem that might very well be of my own making. I suspect my Lua is complicated enough that you would spend as much time getting the environment working necessary to run it (I have a whole docker-compose framework with addendum scripts for setting up iptables and an apache proxy) as you would tracking down whether the issue was an Orthanc specific problem.
I thought perhaps some other users or the team might have encountered similar errors and could provide some intuition where I could focus my efforts. For example, if anyone was aware of any explicit limitations to RestAPIPost + modify calls from Lua.
By the way, I tried the "out of the box" Orthanc "instances/xxxxx/anonymize" on one of the multiframes and it successfully anonymized the file, where "anonymized" means Orthanc's brand of anonymization.
I believe we've discussed in earlier posts that Orthanc's anonymization is not recursive. So, as a result, while the top level of DICOM tags are cleared of proprietary odd-numbered Group/Element entries, sequences which contain them are not. That's what I observed here with the new multiframe DICOM. The standard Orthanc anonymize removed proprietary Group/Element entries from the top level but not from sequences.
One of the things my Lua script does is add recursive remove/replace to the anonymization.
In any case, I've been anticipating a rewrite for a while and may finally take the time to do that. I think the Python framework now available with the plugin should be easier to work with than the embedded Lua.