If someone is a legal resident (with relevant residence visa) of another country and can prove it with a copy of the alien ID/residence card, then you are correct. But if someone is a tourist in that other country, then the e-visa application gets routed to the Thai embassy of the home country/passport country. The OP stated she is "traveling in Japan" so I assume she is a tourist. Her only choice in this matter is to go to the actual T embassy in Tokyo (actually I'm not even sure if they service non-residents but there's a chance and a phone call is free).
You have roughly a 40% chance of being denied entry at DMK/BKK/HKT, more so at CMX. Go spend some time in another country for a while (6 months) would be my advice.