The Germans had automatic infantry rifles in very limited numbers as early as the 1941, just not in a dependable design. The G43 was a big improvement, but it was a little late and not manufactured in the numbers it probably should have been.

The Japanese had a prototype automatic rifle made in very small numbers. One online company had an incomplete one for sale for years. I'm not sure if they finally sold it or gave up trying.