The problem is a character like Charlie Chan. At the height of his popularity, some were critical of his slightly stereotypical behavior, while many Chinese Americans were proud to have a mainstream Chinese detective character that was revered for his intelligence and effectiveness.
That's an interesting, and also sad point. We'll need to be careful about how we discuss this - current affairs and all that.
In Babylon 5, the doctor was black. After the actor died, his family said how much he'd loved the role - because not a single plot line was about him being black. The plot lines were about his character, and his beliefs as a doctor, and his colour was of no comment whatsoever.
There has been discussion in the thread regarding response to representations you feel are inaccurate. As a reader, I get quite put off a story by errors in science, or a scenario with which I am familiar being written in a way that I see as inaccurate. Depending on how bad my response is anything between give up fast on the book and don't review, if I finish it and write a review I may comment on the inaccuracies in the review, depending on how many, but it would be in the minority of my review. Like "Overall this was an entertaining book with good prose. I liked xxxxxxx. I have a small caveat that as a professional yyyy the sections with so and so didn't really ring true for me. If you don't have my level of knowledge on this subject, it may well not bother you." Or I contact the writer about it, if they have a website. If it is one small thing then it isn't worth mentioning in a review. Now that is with knowledge, such as historical knowledge or scientific knowledge, and with representations of scientists. I identify as a scientist and get a little weary of and irritated by public comment/plot lines on the mad scientist trope.
As a sff writer I do struggle at times as I am aware of the limitations of my experience - and suspect that I have more I am unaware of. I try to find a path for the story that I am comfortable with, that rings true for me but doesn't step on toes. One day I may publish and find out how right/wrong I was on that.
I have been intrigued down the years by people in the writing area asking for suggestions on places to set their story, and then writing their story in a place they've never been, based on internet information and info from people in forums. I'm talking about contemporary settings used in a sff book, not totally made up worlds. If I tried to do that, I'd be deeply uncomfortable, not out of any principle or ethic, but because I can't "feel" the setting. There are always sounds, smells, details, that I'd notice about a place that would colour my writing, and it would be very hard to get that in without going there.