Hi,
It was actually a stupid error.
I was redirecting discourse via proxy to https. however, http was also working on the top level domain. hence because of the confusion between https & http, I think google was unable to fetch robots.txt file.
I just forced http to use https completely. and now everything looks fine.
thanks everyone for helping.