dosubot[bot] commented on issue #36704: URL: https://github.com/apache/superset/issues/36704#issuecomment-3664856802
<!-- Answer --> The TypeError in the deck.gl GeoJSON chart when using an HTTPS domain for `WEBDRIVER_BASEURL_USER_FRIENDLY` is most likely caused by a proxy or HTTPS misconfiguration that affects how data or assets are loaded, rather than the variable itself. This can result in missing or malformed properties in the chart data, which triggers frontend errors like "Cannot read properties of undefined (reading 'r')" [example](https://github.com/apache/superset/pull/36201). To troubleshoot, use browser dev tools to compare the network/API responses and console errors for the chart in both setups. Look for CORS, mixed content, or asset loading issues. Make sure your NGINX config sets headers like `X-Forwarded-Proto` to `$scheme` and `X-Forwarded-Host` to `$host` (without the protocol), and that you have `ENABLE_PROXY_FIX = True` and `PROXY_FIX_CONFIG = {"x_for": 1, "x_proto": 1, "x_host": 1, "x_port": 1, "x_prefix": 1}` in `superset_config.py` [reference](https://github.com/apache/superset/discussions/33440#discussioncomment-13148269). Also, check that your GeoJSON column contains valid Features or FeatureCollections, not just raw geometry objects, and that the column type is TEXT [reference](https://github.com/apache/superset/issues/34748#issuecomment-3199847335). If you use icons in the chart, make sure your Content Security Policy allows the icon URLs [reference](https://github.com/apache/superset/pull/36201). If the data payloads and asset loading are identical and no network errors are present, review your chart configuration and dataset schema for missing or misnamed properties. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/85d11819-cb1e-4bfb-bf6b-41ff679c1b48?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/85d11819-cb1e-4bfb-bf6b-41ff679c1b48?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/85d11819-cb1e-4bfb-bf6b-41ff679c1b48?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/85d11819-cb1e-4bfb-bf6b-41ff679c1b48?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/85d11819-cb1e-4bfb-bf6b-41ff679c1b48?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/85d11819-cb1e-4bfb-bf6b-41ff679c1b48?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/85d11819-cb1e-4bfb-bf6b-41ff679c1b48?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=The%20TypeError%20in%20the%20deck.gl%20GeoJSON%20chart%20when%20using%20an%20HTTPS%20domain%20for%20%60WEBDRIVER_BASEURL_USER_FRIENDLY%60%20is%20most%20likely%20caused%20by%20a%20proxy%20or%20HTTPS%20misconfiguration%20that%20affects%20how%20data%20or%20assets%20are%20loaded%2C%20rather%20than%20the%20variable%20itself.%20This%20can%20result%20in%20missing%20or%20malformed%20properties%20in%20the%20chart%20data%2C%20which%20triggers%20frontend%20errors%20like%20%22Cannot%20read%20properties%20of%20undefined%20%28reading%20%27r%27%29%22%C2%A0%5Bexample%5D%28https%3A//github.com/apache/superset/pull/36201%29.%0A%0ATo%20troubleshoot%2C%20use%20browser%20dev%20tools%20to%20compare%20the%20network/API%20responses%20and%20console%20errors%20for%20the%20c hart%20in%20both%20setups.%20Look%20for%20CORS%2C%20mixed%20content%2C%20or%20asset%20loading%20issues.%20Make%20sure%20your%20NGINX%20config%20sets%20headers%20like%20%60X-Forwarded-Proto%60%20to%20%60%24scheme%60%20and%20%60X-Forwarded-Host%60%20to%20%60%24host%60%20%28without%20the%20protocol%29%2C%20and%20that%20you%20have%20%60ENABLE_PROXY_FIX%20%3D%20True%60%20and%20%60PROXY_FIX_CONFIG%20%3D%20%7B%22x_for%22%3A%201%2C%20%22x_proto%22%3A%201%2C%20%22x_host%22%3A%201%2C%20%22x_port%22%3A%201%2C%20%22x_prefix%22%3A%201%7D%60%20in%20%60superset_config.py%60%C2%A0%5Breference%5D%28https%3A//github.com/apache/superset/discussions/33440%23discussioncomment-13148269%29.%0A%0AAlso%2C%20check%20that%20your%20GeoJSON%20column%20contains%20valid%20Features%20or%20FeatureCollections%2C%20not%20just%20raw%20geometry%20objects%2C%20and%20that%20the%20column%20type%20is%20TEXT%C2%A0%5Breference%5D%28https%3A//github.com/apache/superset/issues/34748%23issuecomment-3199847335%29.%20If%20you%20u se%20icons%20in%20the%20chart%2C%20make%20sure%20your%20Content%20Security%20Policy%20allows%20the%20icon%20URLs%C2%A0%5Breference%5D%28https%3A//github.com/apache/superset/pull/36201%29.%0A%0AIf%20the%20data%20payloads%20and%20asset%20loading%20are%20identical%20and%20no%20network%20errors%20are%20present%2C%20review%20your%20chart%20configuration%20and%20dataset%20schema%20for%20missing%20or%20misnamed%20properties.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36704) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
