Sometimes this flow works file with no problems, and sometimes I get "Device with serial '1111-1111-1111' is already claimed" error while doing step 3. For the cases I get this error, if I wait for around 10 minutes and try again from step 3, the flow succeeds.
So in some cases, the api falsely thinks the device is already claimed in a network. Any ideas why this could be happening?
What I suspect is, if the 2 organizations are on different shards, it takes some time for the data to be replicated between shards after step 2. Facts supporting this theory are,
1 - operation succeeds after some time
2 - this consistently happens for some organization pairs, and consistently not happens for some organization pairs.this be the cause?