In zerodha, you can place After Market Orders only after 6:30 pm until 9:15 next morning.
So try during these timings.
In any other timings, you would get this error, I presume.
Or some server upgrade or weekly maintenance would be going on. Hence you may get that error.