Google Maps embeded links sometimes work, sometimes don't (onebox 404)

Google Maps 링크에서 이상한 동작이 발생하고 있습니다.

때로는 제대로 임베드되기도 하고, 때로는 onebox 요청이 404를 반환하기도 합니다. 문제를 일관되게 재현하는 방법을 찾지 못했지만, 매우 자주 발생합니다. 링크를 붙여넣거나, Google Maps 카메라를 이동하거나 크롭을 한 뒤 다시 시도해 보세요…

처음에는 레이트 리밋(rate limit) 문제인 줄 알았지만, 그렇지 않습니다. 동작하는 링크와 동작하지 않는 링크는 제 환경에서도, 제 포럼에서도 동일합니다. 예시:

이 문제가 어디서 발생하는지 아이디어가 있는 분이 있을까요? Google 측 문제인가요, Discourse 측 문제인가요? Contribute > Bug 채널로 옮기는 것이 적절할까요?

5개의 좋아요

This is kind of weird, I just happened to notice the pattern… but I think it has something to do with the zoom level in the link?

:x: 15.5z

:white_check_mark: 15z

:x: 16.75z

:white_check_mark: 17z

An entirely different location…

:x: 15.38z

:white_check_mark: 15z

My guess is that it’s a Google Maps onebox engine issue on our end?

8개의 좋아요

Nice sleuthing @awesomerobot ! :man_detective:

Looks like our regex for zoom level doesn’t allow dots here:

Quite an easy fix.

9개의 좋아요

What a catch :smiley:

Thanks for figuring it out!

2개의 좋아요

@loic can you have a quick look at this one?

1개의 좋아요

Sure, I’ll take a look :slight_smile:

Fixed here:
https://github.com/discourse/discourse/pull/20497

6개의 좋아요

Rebuilding @awesomerobot’s post and all the Google Maps links are now working :clap:

Closing this.

6개의 좋아요