Oven won't stay lit

The Oven on my range will not light. The igniter will not spark. I The range burners work fine. I connected the oven igniter to the igniter for one of the range burners and it sparked for a few seconds and then went out. The gas valve turned on and the burner lit but after a few seconds it went out. I checked the gas solenoid and it had the correct resistance. Before it broke for about a month the oven would heat up ok but once you opened the door to put something in it would not relight once the temp dropped. I would have to turn the oven off and start it again to get the gas solenoid to kick on. I looks like the gas part on the system works because it did light but I don’t know why it turned back off so fast. I thought it might be a bad thermocouple but looking at the wiring diagrams it doesn’t look like it has one. Could an oven temp sensor be keeping the gas from staying on and cycling properly? I have no codes on the control panel. Thanks for your help