Xiaowen,
You will need to supply a little more info for people to trouble shoot, like your popup config and either a screen shot of your rest URL or a link to the rest endpoint if it is public.
One thing to remember is that flex is case sensitive
Regards
Anthony