okay, im having the same problem. odd thing is that the small 3g tank i bought warned me in the instructions that this would happen. it has FAQ
"why are there bubbles on top of my tank?
This is generally a result of water imbalance. once your tank has cycled and its brought into balance, the bubbling should end. an aquarium usually takes a month or so to completely cycle, and during this time, make sure that the food for your fish isn't sitting on top of the bubbles where the fish can't get to it. another common cause for foaming is the decorative gravel that has not been rinsed as thoroughly as necessary to clean it completely."
underneath it is one about cloudy water and it says in bold text to not empty the tank and restart because of bacteria growth that would have to start over.
unfortunately im having the foaming problem, but its not ammonia imbalance which ive seen all over search engines because the foam goes away when it gets disturbed. so i just run the net through it and it clears up, but it keeps coming but. unfortunately ive lost two fish since the foam attack, however i can't be sure it was related...since the foam is not supposed to be harmful. I did add the dechlor before and the foam didn't show up for three days. i dont know but i need to find out if this is responsible for the poor fishes death or if one was sick and is killing the rest.