I would think if you were phill applying in Thailand the embassy might think it strange unless you had a good reason to be there ie work or residence.
Yes, it's usually not allowed to request a visa (outside from tourist one) if you're not resident (meaning for someone holding a tourist visa). They will surely ask to apply from the usual residency country.